]> git.ipfire.org Git - thirdparty/libtool.git/commit
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.
authorGary V. Vaughan <gary@gnu.org>
Wed, 16 Nov 2011 11:59:01 +0000 (18:59 +0700)
committerGary V. Vaughan <gary@gnu.org>
Fri, 25 Nov 2011 07:53:41 +0000 (14:53 +0700)
commit06c6555d4a77a5e91f43da3451586534da93e0ae
treed7231883b36c9cc1afa28ea9a738f54afe36c8ff
parent59e09030ae0f79108745dd527b2fd03f0f149696
syntax-check: fix violations and implement sc_useless_quotes_in_assignment.

Contrary to popular belief, Bourne shell does not resplit RHS of
assignments after expansion, so if there are no unquoted shell
metacharacters or whitespace, the quotes are useless.
* cfg.mk (_sc_search_regexp_or_exclude): A variation of gnulib's
_sc_search_regexp that also allows individual exclusions at the
site of what would otherwise match by adding a comment.
(sc_useless_quotes_in_assignment): New syntax-check rule to
ensure we don't reintroduce useless quoted assignments.
* bootstrap, bootstrap.conf, build-aux/edit-readme-alpha,
build-aux/general.m4sh, build-aux/getopt.m4sh,
build-aux/ltmain.m4sh, build-aux/options-parser, configure.ac,
doc/libtool.texi, libtoolize.m4sh, m4/libtool.m4, m4/ltdl.m4,
m4/ltoptions.m4, tests/cwrapper.at, tests/defs.m4sh,
tests/lalib-syntax.at, tests/libtoolize.at,
tests/lt_dlopenext.at, tests/mdemo/configure.ac,
tests/mdemo2/configure.ac, tests/need_lib_prefix.at,
tests/no-executables.at, tests/quote.test, tests/suffix.test:
Remove spurious quotes.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
26 files changed:
bootstrap
bootstrap.conf
build-aux/edit-readme-alpha
build-aux/general.m4sh
build-aux/getopt.m4sh
build-aux/git-hooks/commit-msg
build-aux/ltmain.m4sh
build-aux/options-parser
cfg.mk
configure.ac
doc/libtool.texi
libtoolize.m4sh
m4/libtool.m4
m4/ltdl.m4
m4/ltoptions.m4
tests/cwrapper.at
tests/defs.m4sh
tests/lalib-syntax.at
tests/libtoolize.at
tests/lt_dlopenext.at
tests/mdemo/configure.ac
tests/mdemo2/configure.ac
tests/need_lib_prefix.at
tests/no-executables.at
tests/quote.test
tests/suffix.test