From: Jim Meyering Date: Sun, 1 Feb 2009 19:19:03 +0000 (+0100) Subject: * maint.mk (sc_redundant_const): Use $(_prohibit_regexp). X-Git-Tag: v7.1~30 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=18810ae65f72b8b8a73c04dd2be92ff1a34969ad;p=platform%2Fupstream%2Fcoreutils.git * maint.mk (sc_redundant_const): Use $(_prohibit_regexp). --- diff --git a/maint.mk b/maint.mk index b75e9b559..5271c25f1 100644 --- a/maint.mk +++ b/maint.mk @@ -414,10 +414,9 @@ sc_proper_name_utf8_requires_ICONV: # Warn about "c0nst struct Foo const foo[]", # but not about "char const *const foo" or "#define const const". sc_redundant_const: - @grep -E '\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ - $$($(VC_LIST_EXCEPT)) && \ - { echo 1>&2 '$(ME): redundant "const" in declarations'; \ - exit 1; } || : + @re='\bconst\b[[:space:][:alnum:]]{2,}\bconst\b' \ + msg='redundant "const" in declarations' \ + $(_prohibit_regexp) sc_const_long_option: @grep '^ *static.*struct option ' $$($(VC_LIST_EXCEPT)) \