Files
OpenRCT2-Web/scripts/check-code-formatting
T

19 lines
413 B
Bash
Raw Normal View History

2022-03-09 21:15:32 -08:00
#!/usr/bin/env sh
set -e
2020-01-24 11:46:12 +00:00
readlink_bin='readlink'
2022-03-09 12:58:01 -08:00
if [ "$(uname)" == "Darwin" ]; then
if ! [ -x "$(command -v greadlink)" ]; then
echo 'Please install greadlink with Homebrew: brew install coreutils'
exit 1
fi
readlink_bin='greadlink'
fi
2020-01-24 11:46:12 +00:00
# Ensure we are in root directory
basedir="$($readlink_bin -f `dirname $0`/..)"
2020-01-24 11:46:12 +00:00
cd $basedir
2020-02-23 15:33:01 +00:00
scripts/run-clang-format.py -r src test --exclude src/thirdparty