[gnome-chess] Fix autogen to check symlink for style-checker



commit 61fa993d6f1799f557e397200f9f4abcd17bbf52
Author: Sahil Sareen <sahil sareen hotmail com>
Date:   Sun Dec 6 11:27:59 2015 +0530

    Fix autogen to check symlink for style-checker
    
      - Replace check for a file with symlink
    
    https://bugzilla.gnome.org/show_bug.cgi?id=759060

 autogen.sh |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index e6b7433..5bb9757 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -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
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]