From: Jim Meyering Date: Sat, 9 Apr 2011 20:58:06 +0000 (+0200) Subject: maint.mk: prohibit use of "can not" X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2ba828d7b521d831648a4d0926d7885705cf1d59;p=pspp 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 index 8ea526d8da..003ebede51 100644 --- 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 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 ' \ $(_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.