2022-03-10 00:15:32 -05:00
|
|
|
#!/usr/bin/env sh
|
|
|
|
|
|
|
|
set -e
|
2020-01-24 06:46:12 -05:00
|
|
|
|
2020-05-05 17:17:39 -04:00
|
|
|
readlink_bin='readlink'
|
|
|
|
|
2022-03-09 15:58:01 -05:00
|
|
|
if [ "$(uname)" == "Darwin" ]; then
|
2020-05-05 17:17:39 -04:00
|
|
|
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 06:46:12 -05:00
|
|
|
# Ensure we are in root directory
|
2020-05-05 17:17:39 -04:00
|
|
|
basedir="$($readlink_bin -f `dirname $0`/..)"
|
2020-01-24 06:46:12 -05:00
|
|
|
cd $basedir
|
|
|
|
|
2024-10-02 04:50:54 -04:00
|
|
|
scripts/run-clang-format.py --clang-format-executable /usr/lib/llvm18/bin/clang-format -r src test data/shaders --exclude src/thirdparty
|