die() follows system() by dividing $! by 256.
+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
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";
};
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";
};
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";
};