maint.mk: prohibit use of "can not"
authorJim Meyering <meyering@redhat.com>
Sat, 9 Apr 2011 20:58:06 +0000 (22:58 +0200)
committerJim Meyering <meyering@redhat.com>
Sat, 9 Apr 2011 20:58:06 +0000 (22:58 +0200)
* top/maint.mk (sc_prohibit_can_not): New rule.
Writing "can not" (rather than "cannot") is too common.  Prohibit it.

ChangeLog
top/maint.mk

index 8ea526d8dae0c300b5c2195d3956878cc42f6e4f..003ebede51c1555730ef53012c15eb213479ae65 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2011-04-09  Jim Meyering  <meyering@redhat.com>
+
+       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.
+
 2011-04-09  Bruno Haible  <bruno@clisp.org>
 
        careadlinkat: Guard against misuse of careadlinkatcwd.
index 693e5ab0425ac6cd43f4915839b45d10c49a0ce0..823e46c93b92da091a7999c899b4177ea325fcb4 100644 (file)
@@ -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.