diff options
author | Jim Meyering <meyering@redhat.com> | 2010-11-18 06:29:54 +0100 |
---|---|---|
committer | Jim Meyering <meyering@redhat.com> | 2010-11-18 06:29:54 +0100 |
commit | c1b41c5c3bd9f603ac09a8cbf16a69ffc9129e4f (patch) | |
tree | 091075f631b8a17f17656a98703da7ea2b877f86 | |
parent | ae5cfc9f12ddb7a3d1740bb0558726cbbd7d9cb6 (diff) | |
download | coreutils-c1b41c5c3bd9f603ac09a8cbf16a69ffc9129e4f.tar.xz |
maint: syntax-check: prevent new $VERBOSE/--version tests
* cfg.mk (sc_prohibit_verbose_version): New rule.
-rw-r--r-- | cfg.mk | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -251,6 +251,12 @@ sc_prohibit_sleep: halt='prefer xnanosleep over other sleep interfaces' \ $(_sc_search_regexp) +# Use print_ver_ (from init.cfg), not open-coded $VERBOSE check. +sc_prohibit_verbose_version: + @prohibit='test "\$$VERBOSE" = yes && .* --version' \ + halt='use the print_ver_ function instead...' \ + $(_sc_search_regexp) + ########################################################### _p0 = \([^"'/]\|"\([^\"]\|[\].\)*"\|'\([^\']\|[\].\)*' _pre = $(_p0)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)* |