Add pre-applypatch code style checker hook
- Update autogen.sh to symlink to the style-checker https://bugzilla.gnome.org/show_bug.cgi?id=759062
This commit is contained in:
parent
61fa993d6f
commit
88704d908a
1 changed files with 8 additions and 2 deletions
10
autogen.sh
10
autogen.sh
|
@ -12,8 +12,14 @@ cd $srcdir
|
|||
exit 1
|
||||
}
|
||||
|
||||
if [ -d $srcdir/.git ] && [ ! -L $srcdir/.git/hooks/pre-commit ]; then
|
||||
ln -s ../../../libgames-support/style-checker $srcdir/.git/hooks/pre-commit && echo "Enabled pre-commit style checker." || :
|
||||
# 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`
|
||||
|
|
Loading…
Reference in a new issue