The scripts are very light on error handling and verification, mostly intended just to debug if a CI server fails on formatting reasons.
16 lines
346 B
Bash
16 lines
346 B
Bash
#!/usr/bin/env bash
|
|
|
|
clang-format --version;
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "Clang-format found."
|
|
build_path="`dirname \"$0\"`"
|
|
project_path=$build_path/../..
|
|
|
|
python $project_path/build_scripts/run-clang-format.py $project_path/src -r --color always;
|
|
echo "FORMATTED CORRECTLY."
|
|
else
|
|
echo "Could not find clang-format."
|
|
fi
|
|
|