# HG changeset patch # User Jim Meyering # Date 1302382686 -7200 # Node ID ff63cf60e142a662edfde72626ca73d2d041a316 # Parent 38c2156144b425afd831af6d12feedf84a393376 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. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2011-04-09 Jim Meyering + + 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 careadlinkat: Guard against misuse of careadlinkatcwd. diff --git a/top/maint.mk b/top/maint.mk --- a/top/maint.mk +++ b/top/maint.mk @@ -841,6 +841,11 @@ halt='do not define S_IS* macros; include ' \ $(_sc_search_regexp) +sc_prohibit_can_not: + @prohibit='\' \ + 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.