]> git.notmuchmail.org Git - notmuch/commit
devel: add release-checks.sh
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 4 Sep 2012 14:49:12 +0000 (17:49 +0300)
committerDavid Bremner <bremner@debian.org>
Wed, 5 Sep 2012 11:33:45 +0000 (08:33 -0300)
commita0ce84c3afd6021455fa3685088d409f58d3c510
tree79e04d62fcfd33a27b2c42a06e6d6f41b535bddb
parent79a73cd46e39be5cc83c0805ac2b2c20a81d64c8
devel: add release-checks.sh

Currently Makefile.local contains some machine executable release
checking functionality. This is unnecessarily complex way to do it:

Multiline script functionality is hard to embed -- from Makefile point
of view there is just one line split using backslashes and every line
ends with ';'. It is hard to maintain such "script" when it gets longer.

The embedded script does not fail as robust as separate script; set -eu
could be added to get same level of robustness -- but the provided
Bourne Again Shell (bash) script exceeds this with 'set -o pipefail',
making the script to fail when any of the commands in pipeline fails
(and not just the last one).

Checking for release is done very seldom compared to all other use;
The whole Makefile.local gets simpler and easier to grasp when most
release checking targets are removed.

When release checking is done, the steps are executed sequentially;
nothing is allowed to be skipped due to some satisfied dependency.
devel/release-checks.sh [new file with mode: 0755]