]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
* automake.in (usage, version): Honor $exit_code.
authorAlexandre Duret-Lutz <adl@gnu.org>
Tue, 9 Jul 2002 19:45:10 +0000 (19:45 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Tue, 9 Jul 2002 19:45:10 +0000 (19:45 +0000)
(parse_arguments): Use fatal.

ChangeLog
automake.in

index 796e325d0f21fe7e50356fca36ed576a4a93f580..6a04c6026ab2c86ca3da44cd478cab632fcf596f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
+
+       * automake.in (usage, version): Honor $exit_code.
+       (parse_arguments): Use fatal.
+
 2002-07-09  Alexandre Duret-Lutz  <duret_g@epita.fr>
 
        * automake.texi (Invoking Automake): Document WARNINGS.
index d2b7a1f4b6654adc996358768cd187a0eecdf9ef..eca1b127467f67cedec5a24b1bfcbff2473dd9c3 100755 (executable)
@@ -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 <bug-automake\@gnu.org>.\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.