mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-13 02:52:35 +01:00
* Reformat Objective-C source * clang-format Objective-C code Format objective-c code as well. I think way back in the past clang-format failed to parse objective-c code, but it works ok now.
20 lines
551 B
Bash
Executable File
20 lines
551 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/llvm20/bin/clang-format -r src test data/shaders --exclude src/thirdparty --extensions "c,h,C,H,cpp,hpp,cc,hh,c++,h++,cxx,hxx,vert,frag,mm"
|