]> git.notmuchmail.org Git - notmuch/commitdiff
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)
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.


No differences found