]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
* ltmain.in, libtoolize.in: Exit with nonzero status on write failures
authorRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 2 Feb 2005 22:17:04 +0000 (22:17 +0000)
committerRalf Wildenhues <Ralf.Wildenhues@gmx.de>
Wed, 2 Feb 2005 22:17:04 +0000 (22:17 +0000)
with --help or --version or, in case of ltmain, --config or --features.

ChangeLog
libtoolize.in
ltmain.in

index 9d141f35a30ebaa58b911b37160fe5b3238cd78e..51778622e5b8c498b1f897cfc7602120b419a68b 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 2005-02-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
 
+       * ltmain.in, libtoolize.in: Exit with nonzero status on write failures
+       with --help or --version or, in case of ltmain, --config or --features.
+
        * NEWS: Update.
 
 2005-02-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
index a8426d8f9e77e8a625f8f4c20491b86c35cb5e91..8c103e6b8d1859b15ad170e9d5f4d032f31f9437 100644 (file)
@@ -82,7 +82,7 @@ You must \`cd' to the top directory of your package before you run
 
 Report bugs to <bug-libtool@gnu.org>.
 EOF
-    exit 0
+    exit $?
     ;;
 
   --version)
@@ -91,7 +91,7 @@ EOF
     echo "Copyright (C) 2003 Free Software Foundation, Inc."
     echo "This is free software; see the source for copying conditions.  There is NO"
     echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-    exit 0
+    exit $?
     ;;
 
   --automake)
index 792481185ecd010408d4b39c11c5990af304f4dc..a1662f4859eed8cd5a9ef4808861b80e9fc922ff 100644 (file)
--- a/ltmain.in
+++ b/ltmain.in
@@ -442,7 +442,7 @@ do
     $echo "Copyright (C) 2003  Free Software Foundation, Inc."
     $echo "This is free software; see the source for copying conditions.  There is NO"
     $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
-    exit $EXIT_SUCCESS
+    exit $?
     ;;
 
   --config)
@@ -451,7 +451,7 @@ do
     for tagname in $taglist; do
       ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
     done
-    exit $EXIT_SUCCESS
+    exit $?
     ;;
 
   --debug)
@@ -476,7 +476,7 @@ do
     else
       $echo "disable static libraries"
     fi
-    exit $EXIT_SUCCESS
+    exit $?
     ;;
 
   --finish) mode="finish" ;;
@@ -6408,7 +6408,7 @@ esac
 $echo
 $echo "Try \`$modename --help' for more information about other modes."
 
-exit $EXIT_SUCCESS
+exit $?
 
 # The TAGs below are defined such that we never get into a situation
 # in which we disable both kinds of libraries.  Given conflicting