* #8542: autogen.sh should not require git

This commit is contained in:
Tristan Matthews
2012-02-06 01:02:52 -05:00
parent 6614ee1e24
commit 88a4ae3b92

View File

@ -3,9 +3,9 @@
# Workaround for http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=565663
mkdir -p m4
HOOKS_DIR="`git rev-parse --git-dir`"/hooks
HOOKS_DIR="../.git/hooks"
# install pre-commit hook for doing clean commits
if test ! \( -x ${HOOKS_DIR}/hooks/pre-commit -a -L ${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