summaryrefslogtreecommitdiff
path: root/autogen.sh
diff options
context:
space:
mode:
authorEdward Hervey <bilboed@bilboed.com>2009-01-22 06:16:14 +0100
committerEdward Hervey <bilboed@bilboed.com>2009-01-22 06:16:14 +0100
commit548a0d7f4bbe7a8af837f65371edb62788d0e6dc (patch)
tree7df41ffccba6cf0a909bc55ab025b3c4d7aba0e8 /autogen.sh
parent4627076310b8e4978724cee66bd28ae07315d4fd (diff)
Install and use pre-commit indentation hook from common
Diffstat (limited to 'autogen.sh')
-rwxr-xr-xautogen.sh8
1 files changed, 8 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 4b98c6f..d8aa1e9 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -47,6 +47,14 @@ 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
+
+
# Let's check if we can disable the building of the ffmpeg binary
can_disable=`$FFMPEG_CO_DIR/configure --help | grep 'disable-ffmpeg' | wc -l`