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

18 lines
406 B
Bash
Raw Normal View History

2020-01-24 11:46:12 +00:00
#!/bin/sh
set -e
readlink_bin='readlink'
if [[ "$OSTYPE" == "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