aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/clang-format/config.sh
blob: 3adf2678e7a422e5e32edb67997855d231822e5f (plain)
1
2
3
4
5
6
7
8
9
10
11
CLANG_FORMAT=clang-format-3.5

set -ex

if not hash $CLANG_FORMAT 2>/dev/null; then
  echo "$CLANG_FORMAT is needed but not installed"
  echo "perhaps try:"
  echo "  sudo apt-get install $CLANG_FORMAT"
  exit 1
fi