* autoupdate.in: Preserve exit status of the failed command when

die() follows system() by dividing $! by 256.
This commit is contained in:
Pavel Roskin 2001-02-26 22:05:51 +00:00
parent 8376b27448
commit a3e2a92f9d
4 changed files with 11 additions and 6 deletions

View File

@ -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

View 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";
};

View 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";
};

View 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";
};