mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2025-01-22 10:21:57 -05:00
19 lines
485 B
Bash
Executable file
19 lines
485 B
Bash
Executable file
#!/usr/bin/env sh
|
|
|
|
set -e
|
|
|
|
readlink_bin='readlink'
|
|
|
|
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
|
|
|
|
# Ensure we are in root directory
|
|
basedir="$($readlink_bin -f `dirname $0`/..)"
|
|
cd $basedir
|
|
|
|
scripts/run-clang-format.py --clang-format-executable /usr/lib/llvm18/bin/clang-format -r src test data/shaders --exclude src/thirdparty
|