summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-01-30 09:03:42 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-02-21 17:47:29 +0100
commite1d532d7bd89b4de6e5182ec9d2e301bd7c9a718 (patch)
treeba924f1f19d740aca27ff34140f5cdd062fd3ca6 /autogen.sh
parentb7f617ad585bf441b417035b9d9f46dcc215d9a5 (diff)
autogen.sh: actually setting up a symbolic link for the pre-commit hook
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/autogen.sh b/autogen.sh
index 7bceb7c48..7ac3720d2 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -25,8 +25,8 @@ fi
# install pre-commit hook for doing clean commits
if test ! \( -x .git/hooks/pre-commit -a -L .git/hooks/pre-commit \);
then
- cp common/hooks/pre-commit.hook .git/hooks/pre-commit
- chmod +x .git/hooks/pre-commit
+ rm -f .git/hooks/pre-commit
+ ln -s ../../common/hooks/pre-commit.hook .git/hooks/pre-commit
fi
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'