This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Daniel Jacobowitz wrote:
On Sat, Nov 23, 2002 at 05:45:12PM -0500, Nathanael Nerode wrote:This change eliminates leftover support for non-autoconfiscated subdirectories.
But before I test and submit it properly (I anticipate some changes), I want to check that the use of {} is portable. Can someone who knows more about shellology verify?
I don't believe you even need it. It reduces to:
rm -f no-such-file skip-this-dir; \
CONFIG_SITE=no-such-file $(SHELL) $${libsrcdir}/configure \
$(BUILD_CONFIGARGS) $${srcdiroption} \ --with-build-subdir="$(BUILD_SUBDIR)" || exit 1; \
The rm isn't about to fail, thus the -f.
Oh right. Uh, duh. :-)
Hmm. Wise idea. I'm not exactly sure how/where I should use it, though, given all the nested ifs. :-/ I'm not really an expert on sh although I fancy that I'm pretty good.Some judicious use of set -e would make this much less scary...
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |