summaryrefslogtreecommitdiff
path: root/maint.mk
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 09:18:23 +0200
committerNikos Mavrogiannopoulos <nmav@redhat.com>2014-10-23 09:18:23 +0200
commit6f0594f4474c97cf52d74e0e9a024cb3c3a57844 (patch)
treea77742c4bbfe95a0695fe48d557f4a364cd199f8 /maint.mk
parent4c594405f7ecac074a38d4c40344308324d3f77b (diff)
downloadgnutls-6f0594f4474c97cf52d74e0e9a024cb3c3a57844.tar.gz
updated gnulib
Diffstat (limited to 'maint.mk')
-rw-r--r--maint.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/maint.mk b/maint.mk
index e5a3782921..1f5bddd56a 100644
--- a/maint.mk
+++ b/maint.mk
@@ -996,6 +996,14 @@ sc_prohibit_undesirable_word_seq:
| grep -vE '$(ignore_undesirable_word_sequence_RE_)' | grep . \
&& { echo '$(ME): undesirable word sequence' >&2; exit 1; } || :
+# Except for shell files and for loops, double semicolon is probably a mistake
+sc_prohibit_double_semicolon:
+ @prohibit='; *;[ {} \]*(/[/*]|$$)' \
+ in_vc_files='\.[chly]$$' \
+ exclude='\bfor *\(.*\)' \
+ halt="Double semicolon detected" \
+ $(_sc_search_regexp)
+
_ptm1 = use "test C1 && test C2", not "test C1 -''a C2"
_ptm2 = use "test C1 || test C2", not "test C1 -''o C2"
# Using test's -a and -o operators is not portable.