]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* autoupdate.in: Preserve exit status of the failed command when
authorPavel Roskin <proski@gnu.org>
Mon, 26 Feb 2001 22:05:51 +0000 (22:05 +0000)
committerPavel Roskin <proski@gnu.org>
Mon, 26 Feb 2001 22:05:51 +0000 (22:05 +0000)
die() follows system() by dividing $! by 256.

ChangeLog
autoupdate.in
autoupdate.sh
bin/autoupdate.in

index 282c74516fbd7e67e1882ad275d9cc7b53b1b556..bdbbf0feecfb6fe703a8c99a31dcb3f95373ad74 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2001-02-26  Pavel Roskin  <proski@gnu.org>
+
+       * autoupdate.in: Preserve exit status of the failed command when
+       die() follows system() by dividing $! by 256.
+
 2001-02-26  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (AH_VERBATIM, AH_TEMPLATE): New, use AS_ESCAPE, not
index c136347b91bb0157ee7507365e49662de46b795e..867834b953a68061e46fc3940ffa5c8f7fd0b9ce 100644 (file)
@@ -461,8 +461,8 @@ EOF
        if $verbose;
     if (system ("$m4 $tmp/input.m4 >$tmp/updated"))
        {
-        # FIXME: This guy is supposed to exit with a proper
-        # exit status, but it does not.  Help is needed.
+        # Exit status of system() is in the upper byte.
+        $! >>= 8;
         die "$me: cannot update \`$filename'\n";
        };
 
index c136347b91bb0157ee7507365e49662de46b795e..867834b953a68061e46fc3940ffa5c8f7fd0b9ce 100644 (file)
@@ -461,8 +461,8 @@ EOF
        if $verbose;
     if (system ("$m4 $tmp/input.m4 >$tmp/updated"))
        {
-        # FIXME: This guy is supposed to exit with a proper
-        # exit status, but it does not.  Help is needed.
+        # Exit status of system() is in the upper byte.
+        $! >>= 8;
         die "$me: cannot update \`$filename'\n";
        };
 
index c136347b91bb0157ee7507365e49662de46b795e..867834b953a68061e46fc3940ffa5c8f7fd0b9ce 100644 (file)
@@ -461,8 +461,8 @@ EOF
        if $verbose;
     if (system ("$m4 $tmp/input.m4 >$tmp/updated"))
        {
-        # FIXME: This guy is supposed to exit with a proper
-        # exit status, but it does not.  Help is needed.
+        # Exit status of system() is in the upper byte.
+        $! >>= 8;
         die "$me: cannot update \`$filename'\n";
        };