From: Pavel Raiskup Date: Thu, 25 Jun 2015 12:53:28 +0000 (+0200) Subject: maint: relax 'sc_prohibit_test_dollar' check X-Git-Tag: v2.4.7~56 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5859cc50d62667438f36c4a2872583bcd09cfdd5;p=thirdparty%2Flibtool.git maint: relax 'sc_prohibit_test_dollar' check * cfg.mk (sc_prohibit_test_dollar): White-list the 'test ${VAR+y}' construct because that is autoconf-suggested portable way to check for unset variable. --- diff --git a/cfg.mk b/cfg.mk index fdc21a1ed..6767b2d52 100644 --- a/cfg.mk +++ b/cfg.mk @@ -176,7 +176,8 @@ sc_prohibit_test_binary_operators: exclude_file_name_regexp--sc_prohibit_test_dollar = ^cfg.mk$$ sc_prohibit_test_dollar: @prohibit='test[ ]+(![ ])?(-.[ ]+)?X?\$$[^?#]' \ - halt='use '\''test "$$..."'\'' instead of '\''test $$'\' \ + exclude='test \$${[A-Za-z_][A-Za-z0-9_]+\+y}' \ + halt='use '\''test "$$..."'\'' instead of '\''test $$'\' \ $(_sc_search_regexp) # Never use test -e.