Install and use pre-commit indentation hook from common
[platform/upstream/gstreamer.git] / autogen.sh
index 6d3c129..c0c60ce 100755 (executable)
@@ -22,6 +22,15 @@ 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-failing-tests --enable-poisoning --enable-gtk-doc --enable-docbook'
 
 autogen_options $@