summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-11-18 06:29:54 +0100
committerJim Meyering <meyering@redhat.com>2010-11-18 06:29:54 +0100
commitc1b41c5c3bd9f603ac09a8cbf16a69ffc9129e4f (patch)
tree091075f631b8a17f17656a98703da7ea2b877f86
parentae5cfc9f12ddb7a3d1740bb0558726cbbd7d9cb6 (diff)
downloadcoreutils-c1b41c5c3bd9f603ac09a8cbf16a69ffc9129e4f.tar.xz
maint: syntax-check: prevent new $VERBOSE/--version tests
* cfg.mk (sc_prohibit_verbose_version): New rule.
-rw-r--r--cfg.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 8b3670c93..46fde8dfa 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -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)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)*