summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-01-22 06:12:55 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-01-22 06:12:55 +0100
commit71789c970d2c73b9c737a866e8b4c2fed5bae1ed (patch)
treed978f4c386edd9f28f64567124e29b1b2d815b59 /autogen.sh
parent4d85e93cf9eab7efb1b99f64c720a6af182a6736 (diff)
downloadgstreamer-plugins-bad-71789c970d2c73b9c737a866e8b4c2fed5bae1ed.tar.gz
Install and use pre-commit indentation hook from common
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 589e85668..0ea5b171f 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -22,6 +22,13 @@ then
fi
. common/gst-autogen.sh
+# install pre-commit hook for doing clean commits
+if test ! -x .git/hooks/pre-commit;
+then
+ cp common/hooks/pre-commit.hook .git/hooks/pre-commit
+ chmod +x .git/hooks/pre-commit
+fi
+
CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc'
autogen_options $@