1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-02-18 05:12:15 +02:00

maint: syntax-check: prevent new $VERBOSE/--version tests

* cfg.mk (sc_prohibit_verbose_version): New rule.
This commit is contained in:
Jim Meyering
2010-11-18 06:29:54 +01:00
parent ae5cfc9f12
commit c1b41c5c3b

6
cfg.mk
View File

@@ -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)\|[/][^"'/*]\|[/]"\([^\"]\|[\].\)*"\|[/]'\([^\']\|[\].\)*'\)*