Commit 9dfd0c7c authored by Sahil Sareen's avatar Sahil Sareen

Add pre-commit and pre-applypatch hooks

parent 33199a30
......@@ -12,6 +12,16 @@ cd $srcdir
exit 1
}
# Use the style-checker as pre-commit and pre-applypatch hooks
if [ -d $srcdir/.git ]; then
if [ ! -L $srcdir/.git/hooks/pre-commit ]; then
ln -s ../../../libgames-support/style-checker $srcdir/.git/hooks/pre-commit && echo "Enabled pre-commit style checker." || :
fi
if [ ! -L $srcdir/.git/hooks/pre-applypatch ]; then
ln -s ../../../libgames-support/style-checker $srcdir/.git/hooks/pre-applypatch && echo "Enabled pre-applypatch style checker." || :
fi
fi
PKG_NAME=`autoconf --trace 'AC_INIT:$1' configure.ac`
if [ "$#" = 0 -a "x$NOCONFIGURE" = "x" ]; then
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment