This is the mail archive of the
mailing list for the Cygwin project.
RE: generic-build-script maintainership
- From: "Rafael Kitover" <caelum at debian dot org>
- To: <cygwin-apps at cygwin dot com>
- Date: Thu, 22 Jan 2004 15:32:05 -0800
- Subject: RE: generic-build-script maintainership
One thing I'd love to see in the generic-build-script, is:
instead of all the horrible && \ stuff. This would make it easier to indent,
reformat, add comments and greatly reduce the noise level. "set -e" works just
fine in both ash and bash. It can also be turned off and on in functions if
Here's how it works:
Suppose you have:
This prints "unreached...". Changint to:
Makes the script exit with status 1 at the "false" line.
It also works a bit like "use strict;" and -w in Perl, in that it forces
keeping track of commands in the script that exit with a non-zero status.
So in the artificial example above, if we don't want to exit at the false line,
false || true
works, and marks the command as possibly failing.
Anyway, just a pet peeve, feel free to ignore me :)