From d1c18b9324d301a4918586059e5176b7ee4123bf Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 2 Feb 2005 22:17:04 +0000 Subject: [PATCH] * ltmain.in, libtoolize.in: Exit with nonzero status on write failures with --help or --version or, in case of ltmain, --config or --features. --- ChangeLog | 3 +++ libtoolize.in | 4 ++-- ltmain.in | 8 ++++---- 3 files changed, 9 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9d141f35a..51778622e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2005-02-02 Ralf Wildenhues + * 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 diff --git a/libtoolize.in b/libtoolize.in index a8426d8f9..8c103e6b8 100644 --- a/libtoolize.in +++ b/libtoolize.in @@ -82,7 +82,7 @@ You must \`cd' to the top directory of your package before you run Report bugs to . 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) diff --git a/ltmain.in b/ltmain.in index 792481185..a1662f485 100644 --- 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 -- 2.47.3