diff top/maint.mk @ 14560:ff63cf60e142

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.
author Jim Meyering <meyering@redhat.com>
date Sat, 09 Apr 2011 22:58:06 +0200
parents 0ba2e3063130
children 4f85858b0e7f
line wrap: on
line diff
--- a/top/maint.mk	Sat Apr 09 20:59:16 2011 +0200
+++ b/top/maint.mk	Sat Apr 09 22:58:06 2011 +0200
@@ -841,6 +841,11 @@
 	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.