[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1847

From: Stefano Lattarini
Subject: [Automake-commit] [SCM] GNU Automake branch, master, updated. v1.11-1847-gdae8578
Date: Sun, 12 Feb 2012 17:30:20 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Automake".;a=commitdiff;h=dae8578ed1fbdff7e60e4bb069700182d5ede6a5

The branch, master has been updated
       via  dae8578ed1fbdff7e60e4bb069700182d5ede6a5 (commit)
      from  19bab32531bc8c41e984460a2fa59205ecb623cd (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit dae8578ed1fbdff7e60e4bb069700182d5ede6a5
Author: Stefano Lattarini <address@hidden>
Date:   Sun Feb 12 18:03:08 2012 +0100

    tests: workaround for shells with broken 'set -e'
    * tests/dist-formats.tap: Some versions of the BSD shell wrongly
    bail out when the 'errexit' shell flag is active and the left-hand
    command in a "&&" list fails and that list is the *last* command
    of a "case" statement.  This was causing an incorrect initialization
    of the '$missing_compressors' variable, and thus potential spurious
    failures when non-existing programs were assumed to be available.


Summary of changes:
 tests/dist-formats.tap |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/tests/dist-formats.tap b/tests/dist-formats.tap
index 80be9c9..612af54 100755
--- a/tests/dist-formats.tap
+++ b/tests/dist-formats.tap
@@ -80,7 +80,8 @@ missing_compressors=`
     case $c in
       # Assume gzip(1) is available on every reasonable portability target.
-        continue;;
+        continue
+        ;;
       # On Cygwin, as of 9/2/2012, 'compress' is provided by sharutils
       # and is just a dummy script that is not able to actually compress
       # (it can only decompress).  So, check that the 'compress' program
@@ -92,9 +93,13 @@ missing_compressors=`
         for x in 1 2 3 4 5 6 7 8; do
           echo aaaaaaaaaaaaaaa
-        done | $c -c >/dev/null && continue;;
+        done | $c -c >/dev/null && continue
+        : For shells with busted 'set -e'.
+        ;;
-        $c --version </dev/null >&2 && continue;;
+        $c --version </dev/null >&2 && continue
+        : For shells with busted 'set -e'.
+        ;;
     echo $c
   done | tr "$nl" ' '`

GNU Automake

reply via email to

[Prev in Thread] Current Thread [Next in Thread]