[four-in-a-row] Simplify style-checker enabling code
- From: Sahil Sareen <ssareen src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [four-in-a-row] Simplify style-checker enabling code
- Date: Mon, 15 Aug 2016 22:40:21 +0000 (UTC)
commit 6ed8cca362b92bd80634a0a59ffc0b6cb230e3b1
Author: Sahil Sareen <sahil sareen hotmail com>
Date: Mon Aug 15 23:37:39 2016 +0100
Simplify style-checker enabling code
autogen.sh | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/autogen.sh b/autogen.sh
index 941dd06..57e5b92 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -14,12 +14,12 @@ cd $srcdir
# 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
+ 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
PKG_NAME=`autoconf --trace 'AC_INIT:$1' configure.ac`
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]