From: Alexandre Duret-Lutz Date: Tue, 9 Jul 2002 19:45:10 +0000 (+0000) Subject: * automake.in (usage, version): Honor $exit_code. X-Git-Tag: Release-1-6b~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31057f9f04abcefcc9ee8b2befdaab2f26e38c56;p=thirdparty%2Fautomake.git * automake.in (usage, version): Honor $exit_code. (parse_arguments): Use fatal. --- diff --git a/ChangeLog b/ChangeLog index 796e325d0..6a04c6026 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2002-07-09 Alexandre Duret-Lutz + + * automake.in (usage, version): Honor $exit_code. + (parse_arguments): Use fatal. + 2002-07-09 Alexandre Duret-Lutz * automake.texi (Invoking Automake): Document WARNINGS. diff --git a/automake.in b/automake.in index d2b7a1f4b..eca1b1274 100755 --- a/automake.in +++ b/automake.in @@ -1454,9 +1454,8 @@ sub parse_arguments () { if ($arg =~ /^-./) { - print STDERR "$0: unrecognized option `$arg'\n"; - print STDERR "Try `$0 --help' for more information.\n"; - exit (1); + fatal ("unrecognized option `$arg'\n" + . "Try `$0 --help' for more information."); } # Handle $local:$input syntax. Note that we only examine the @@ -8560,7 +8559,7 @@ Warning categories include: print "\nReport bugs to .\n"; - exit 0; + exit $exit_code; } @@ -8577,7 +8576,7 @@ Copyright 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. EOF - exit 0; + exit $exit_code; } ### Setup "GNU" style for perl-mode and cperl-mode.