mirror of
https://github.com/OpenRCT2/OpenRCT2.git
synced 2024-08-29 21:46:05 +02:00
19 lines
406 B
Bash
Executable file
19 lines
406 B
Bash
Executable file
#!/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
|
|
|
|
# Ensure we are in root directory
|
|
basedir="$($readlink_bin -f `dirname $0`/..)"
|
|
cd $basedir
|
|
|
|
scripts/run-clang-format.py -r src test --exclude src/thirdparty
|