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

19 lines
485 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
2024-10-02 10:50:54 +02:00
scripts/run-clang-format.py --clang-format-executable /usr/lib/llvm18/bin/clang-format -r src test data/shaders --exclude src/thirdparty