* maint.mk (sc_redundant_const): Use $(_prohibit_regexp).
authorJim Meyering <meyering@redhat.com>
Sun, 1 Feb 2009 19:19:03 +0000 (20:19 +0100)
committerJim Meyering <meyering@redhat.com>
Mon, 2 Feb 2009 08:37:48 +0000 (09:37 +0100)
maint.mk

index b75e9b5591b3990937968af1b627a5517ca40466..5271c25f17f7e591282f6dd2c8af8d36a6d56a72 100644 (file)
--- 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))         \