[libgames-support] style-checker: Improve usage example to reflect actual use



commit 89e0d9820d092f3c967004c2570ea65465746c25
Author: Michael Catanzaro <mcatanzaro gnome org>
Date:   Sat Jul 30 20:03:12 2016 -0500

    style-checker: Improve usage example to reflect actual use

 style-checker |   10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/style-checker b/style-checker
index d5ec4de..44ebcce 100755
--- a/style-checker
+++ b/style-checker
@@ -28,8 +28,14 @@
 #
 # To use it as a pre-commit hook, Update autogen.sh to symlink to this file
 #
-# if [ -d $srcdir/.git ] && [ ! -L $srcdir/.git/hooks/pre-commit ]; then
-#     ln -s ../../../libgames-support/style-checker $srcdir/.git/hooks/pre-commit
+# if [ -d $srcdir/.git ]; then
+#   for HOOK in pre-commit pre-applypatch
+#   do
+#     if [ ! -L $srcdir/.git/hooks/$HOOK ]; then
+#       ln -s ../../../libgames-support/style-checker \
+#         $srcdir/.git/hooks/$HOOK && echo "Enabled $HOOK style checker."
+#     fi
+#   done
 # fi
 #
 # Note: This can be used as the following hooks:


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