From 5d7887b903ac228393328bb24348db909c2ef426 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 9 Jul 2002 19:45:10 +0000 Subject: [PATCH] * automake.in (usage, version): Honor $exit_code. (parse_arguments): Use fatal. --- ChangeLog | 5 +++++ automake.in | 9 ++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 796e325d..6a04c602 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 d2b7a1f4..eca1b127 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. -- 2.43.5