diff options
author | Pavel Raiskup <praiskup@redhat.com> | 2015-06-25 14:53:28 +0200 |
---|---|---|
committer | Pavel Raiskup <praiskup@redhat.com> | 2015-06-25 16:12:41 +0200 |
commit | e503ccc64bcac5a80766876fe985937194d4cf12 (patch) | |
tree | 68a1ef41f5d7218b2f24028ea460adacf66b1903 | |
parent | f589837a9cd2492b7022c159bddba770be9314a6 (diff) | |
download | libtool-praiskup-ARFLAGS.tar.gz |
maint: relax 'sc_prohibit_test_dollar' checkpraiskup-ARFLAGS
* 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.
-rw-r--r-- | cfg.mk | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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. |