Commit 4a54020d authored by Tristan Matthews's avatar Tristan Matthews

* #8542: test for .git existence before moving pre-commit hook

parent f8bfdfaa
......@@ -5,10 +5,13 @@ mkdir -p m4
HOOKS_DIR="../.git/hooks"
# install pre-commit hook for doing clean commits
if test ! \( -x ${HOOKS_DIR}/pre-commit -a -L ${HOOKS_DIR}/pre-commit \);
if [ -d "$HOOKS_DIR" ];
then
rm -f ${HOOKS_DIR}/pre-commit
ln -s ${HOOKS_DIR}/pre-commit.sample ${HOOKS_DIR}/pre-commit
if test ! \( -x ${HOOKS_DIR}/pre-commit -a -L ${HOOKS_DIR}/pre-commit \);
then
rm -f ${HOOKS_DIR}/pre-commit
ln -s ${HOOKS_DIR}/pre-commit.sample ${HOOKS_DIR}/pre-commit
fi
fi
autoreconf --force --install --verbose -Wall -I m4
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment