]> git.ipfire.org Git - thirdparty/libtool.git/commit
syntax-check: fix violations and implement sc_useless_quotes_in_case.
authorGary V. Vaughan <gary@gnu.org>
Wed, 16 Nov 2011 08:00:47 +0000 (15:00 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 25 Nov 2011 07:53:41 +0000 (14:53 +0700)
commit59e09030ae0f79108745dd527b2fd03f0f149696
tree1a7384a4dbed08fa8d389ea4c122ebf981476d07
parent11d16ab06c36948c053c507f5f9e06ff3de221c7
syntax-check: fix violations and implement sc_useless_quotes_in_case.

Contrary to popular belief, Bourne shell does not resplit case
expressions after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (sc_useless_quotes_in_case): New syntax-check rule to
ensure we don't reintroduce useless quoted case expressions.
* build-aux/ltmain.m4sh, m4/libtool.m4, tests/bindir.at,
tests/darwin.at, tests/defs.m4sh, tests/demo-hardcode.test,
tests/demo-nopic.test, tests/link-2.test, tests/quote.test,
tests/sysroot.at: Remove spurious quotes.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
build-aux/ltmain.m4sh
cfg.mk
m4/libtool.m4
tests/bindir.at
tests/darwin.at
tests/defs.m4sh
tests/demo-hardcode.test
tests/demo-nopic.test
tests/link-2.test
tests/quote.test
tests/sysroot.at