bootstrap: Enable the pre-commit hook.

This commit is contained in:
Tanu Kaskinen 2012-07-21 10:03:08 +03:00
parent 241b23cc83
commit abeb68dcf2
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,12 @@ run_versioned() {
set -ex
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
if [ "x$1" = "xam" ] ; then
run_versioned automake "$VERSION" -a -c --foreign
./config.status