# To install me from the source root:
#
#     ln -s ../../scripts/uncrustify/pre-commit.sh .git/hooks/pre-commit

SCRIPTS_ROOT="./scripts"
if ! $SCRIPTS_ROOT/uncrustify_all.sh; then
  echo "There were sources that uncrustify modified. Check the git diff and commit any modified sources." 1>&2
  exit 1
fi

# To install me from the source root:
#
#     ln -s ../../scripts/uncrustify/pre-commit.sh .git/hooks/pre-commit

export PATH=/usr/local/bin:$PATH

SCRIPTS_ROOT="./scripts"
if ! $SCRIPTS_ROOT/uncrustify_all.sh; then
  echo "There were sources that uncrustify modified. Check the git diff and commit any modified sources." 1>&2
  exit 1
fi

Allow uncrustify to be ran from GUI apps (like sourcetree)
Allow uncrustify to be ran from GUI apps (like sourcetree)

Change-Id: I451e4fe0c65e05a3db1effc3b87a3a0794c49a78
