Fix autogen to check symlink for style-checker

- Replace check for a file with symlink

https://bugzilla.gnome.org/show_bug.cgi?id=759060
This commit is contained in:
Sahil Sareen 2015-12-06 11:27:59 +05:30
parent 51b6321514
commit 61fa993d6f

View file

@ -12,7 +12,7 @@ cd $srcdir
exit 1
}
if [ -d $srcdir/.git ] && [ ! -e $srcdir/.git/hooks/pre-commit ]; then
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." || :
fi