From bc97679627a6b73a8c951bca754c9445774f598b Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Thu, 29 Oct 2009 01:41:02 +0000 Subject: Work better with git and other tools. --- autogen.sh | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 3ecad27..b4b1261 100755 --- a/autogen.sh +++ b/autogen.sh @@ -1,6 +1,16 @@ -#!/bin/sh -ex +#!/bin/sh -set -ex +set -e + +# Some boiler plate to get git setup as expected +if test -d .git; then + if test -f .git/hooks/pre-commit.sample && \ + test ! -f .git/hooks/pre-commit; then + cp -pv .git/hooks/pre-commit.sample .git/hooks/pre-commit + fi +fi + +set -x aclocal autoheader -- cgit v1.2.3