X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=autogen.sh;h=582a8a3af495bc6c17d0949cfff141f9eddbad0b;hb=1111415a7587a669f9958ef9406c42572e80ff2b;hp=fdbff66c48b9e675cfe9ff646e22273be223c7c1;hpb=1495719024cae87fd42167ec77691ebb64ba20d7;p=elogind.git diff --git a/autogen.sh b/autogen.sh index fdbff66c4..582a8a3af 100755 --- a/autogen.sh +++ b/autogen.sh @@ -2,6 +2,12 @@ set -e +if [ -f .git/hooks/pre-commit.sample -a ! -f .git/hooks/pre-commit ] ; then + cp -p .git/hooks/pre-commit.sample .git/hooks/pre-commit && \ + chmod +x .git/hooks/pre-commit && \ + echo "Activated pre-commit hook." +fi + gtkdocize autoreconf --install --symlink