]> git.donarmstrong.com Git - lilypond.git/commit
Issue 5013: Fix scripts for environments where "set -ux" carries over
authorMasamichi Hosoda <trueroad@trueroad.jp>
Fri, 16 Dec 2016 11:57:58 +0000 (20:57 +0900)
committerMasamichi Hosoda <trueroad@trueroad.jp>
Thu, 22 Dec 2016 11:55:20 +0000 (20:55 +0900)
commitd73ef0f31f2e154633da4a763b9a20a13b920ca2
tree5414c681cd0b74bfd1f02739b53805cc3b947132
parent18d8cd84676bf2e3a11ab4577d749020f40c2bf4
Issue 5013: Fix scripts for environments where "set -ux" carries over

Normally, in Bourne shell scripts,
"set -ux" does not carry over to child processes.
However, under some conditions, it carries over to child processes.
(E.g. environment variable SHELLOPTS exists.)

If "set -ux" in smart-autogen.sh carries over to the child processes,
autoconf fails.

In order to avoid the issue,
this commit makes smart-autogen.sh and smart-configure.sh use
"set +ux" to cancel the effect of "set -ux"
just before invoking the child process.

Likewise, this commit also removes "set -e"
for avoiding "set -e" carrying over, and adds alternative error handling.
smart-autogen.sh
smart-configure.sh