summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 626d2133..62142048 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -6,6 +6,15 @@ test -z "$srcdir" && srcdir=.
ORIGDIR=`pwd`
cd "$srcdir"
+# install pre-commit hook
+SRC_PRE_COMMIT=hooks/pre-commit.hook
+GIT_PRE_COMMIT=.git/hooks/pre-commit
+
+if [ ! \( -x $GIT_PRE_COMMIT -a -L $GIT_PRE_COMMIT \) ]; then
+ rm -f $GIT_PRE_COMMIT
+ ln -s ../../$SRC_PRE_COMMIT $GIT_PRE_COMMIT
+fi
+
autoreconf -v --install || exit 1
cd $ORIGDIR || exit $?