Mercurial > hg > octave-shane > gnulib-hg
changeset 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 | 38c2156144b4 |
children | ed6716f98fb1 |
files | ChangeLog top/maint.mk |
diffstat | 2 files changed, 11 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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.
--- a/top/maint.mk +++ b/top/maint.mk @@ -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.