Files
OpenVR-AdvancedSettings-frame/build_scripts/linux/verify_formatting
T
Vasily 86a0dae70b Add verification scripts for clang-format
The scripts are very light on error handling and verification, mostly
intended just to debug if a CI server fails on formatting reasons.
2018-12-28 03:01:45 +01:00

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