changeset 14415:a051be71a31b

maint.mk: relax a regexp to accommodate other formatting styles * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space between "ngettext" and the following "(".
author Jim Meyering <meyering@redhat.com>
date Fri, 11 Mar 2011 11:44:12 +0100
parents 29f8fb6ed4b4
children af58015b5dc2
files ChangeLog top/maint.mk
diffstat 2 files changed, 7 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Fri Mar 11 01:12:56 2011 +0000
+++ b/ChangeLog	Fri Mar 11 11:44:12 2011 +0100
@@ -1,3 +1,9 @@
+2011-03-11  Jim Meyering  <meyering@redhat.com>
+
+	maint.mk: relax a regexp to accommodate other formatting styles
+	* top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
+	between "ngettext" and the following "(".
+
 2011-03-11  Pádraig Brady <P@draigBrady.com>
 
 	maint.mk: suppress a false positive warning
--- a/top/maint.mk	Fri Mar 11 01:12:56 2011 +0000
+++ b/top/maint.mk	Fri Mar 11 11:44:12 2011 +0100
@@ -659,7 +659,7 @@
 sc_unmarked_diagnostics:
 	@grep -nE							\
 	    '\<error *\([^"]*"[^"]*[a-z]{3}' $$($(VC_LIST_EXCEPT))	\
-	  | grep -Ev '(_|ngettext )\(' &&				\
+	  | grep -Ev '(_|ngettext ?)\(' &&				\
 	  { echo '$(ME): found unmarked diagnostic(s)' 1>&2;		\
 	    exit 1; } || :