From 4e3472ae6fa64b80c9038a8acaf115d1a7e291c4 Mon Sep 17 00:00:00 2001 From: Edward Hervey Date: Thu, 22 Jan 2009 06:05:26 +0100 Subject: Install and use pre-commit indentation hook from common --- autogen.sh | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autogen.sh') diff --git a/autogen.sh b/autogen.sh index 3c2db610..06951baa 100755 --- a/autogen.sh +++ b/autogen.sh @@ -22,6 +22,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 + + CONFIGURE_DEF_OPT='--enable-maintainer-mode --enable-gtk-doc --enable-plugin-docs' autogen_options $@ -- cgit