maint.mk: improve "can not" detection and generalize rule name
authorJim Meyering <meyering@redhat.com>
Wed, 11 May 2011 08:07:32 +0000 (10:07 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 11 May 2011 08:07:32 +0000 (10:07 +0200)
commit6adb4cdee88c73b0824cc094853737878cd38fd1
tree56d633bbb234de8159bbd4e0c39cbabc2cad62e1
parent112b21e3861a4887731b61888d1388127957ba93
maint.mk: improve "can not" detection and generalize rule name

* top/maint.mk (sc_prohibit_misc): Renamed from sc_prohibit_can_not,
since we'll probably add a few more word pairs here.
Use the same technique as in sc_prohibit_doubled_word, so that
we recognize "can not" also when the words are separated by a newline.
Suggested by Eric Blake.
(perl_filename_lineno_text_): Define.  Factored out of...
(prohibit_doubled_word_): ...here.  Use the new definition.
(prohibit_misc_): New var.  Use it here, too.
(prohibit_misc_RE_): New overridable variable.
ChangeLog
top/maint.mk