summaryrefslogtreecommitdiff
path: root/top
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-04-09 22:58:06 +0200
committerJim Meyering <meyering@redhat.com>2011-04-09 22:58:06 +0200
commit2ba828d7b521d831648a4d0926d7885705cf1d59 (patch)
treea814a115790a1b7145a346c7e74fb27658a771c0 /top
parentbdfd8afae05965555600eb43d661d4c7686ebd68 (diff)
downloadgnulib-2ba828d7b521d831648a4d0926d7885705cf1d59.tar.gz
maint.mk: prohibit use of "can not"
* top/maint.mk (sc_prohibit_can_not): New rule. Writing "can not" (rather than "cannot") is too common. Prohibit it.
Diffstat (limited to 'top')
-rw-r--r--top/maint.mk5
1 files changed, 5 insertions, 0 deletions
diff --git a/top/maint.mk b/top/maint.mk
index 693e5ab042..823e46c93b 100644
--- a/top/maint.mk
+++ b/top/maint.mk
@@ -841,6 +841,11 @@ sc_prohibit_S_IS_definition:
halt='do not define S_IS* macros; include <sys/stat.h>' \
$(_sc_search_regexp)
+sc_prohibit_can_not:
+ @prohibit='\<can[ ]not\>' \
+ halt='use "cannot", not "can'' not"' \
+ $(_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.