From: Ralf Wildenhues Date: Wed, 2 Feb 2005 22:15:02 +0000 (+0000) Subject: * config/getopt.m4sh (func_version, func_usage, func_help, X-Git-Tag: release-2-1b~759 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f6c870a5848c4c2c883cf9546bcd730a6da92e16;p=thirdparty%2Flibtool.git * config/getopt.m4sh (func_version, func_usage, func_help, * config/ltmain.m4sh (func_mode_help, func_config, func_features): Exit with nonzero status on write failures. --- diff --git a/ChangeLog b/ChangeLog index 5eb2eea14..73e210ced 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-02-02 Ralf Wildenhues + * config/getopt.m4sh (func_version, func_usage, func_help, + * config/ltmain.m4sh (func_mode_help, func_config, func_features): + Exit with nonzero status on write failures. + * tests/sh.test: Check for preferred function definition layout. 2005-02-01 Ralf Wildenhues diff --git a/config/getopt.m4sh b/config/getopt.m4sh index dc542af36..90a577fe6 100644 --- a/config/getopt.m4sh +++ b/config/getopt.m4sh @@ -36,7 +36,7 @@ func_version () s/\((C)\)[[ 0-9,-]]*\( [[1-9]][[0-9]]*\)/\1\2/; p; }' < "$progpath" - exit $EXIT_SUCCESS + exit $? } # func_usage @@ -50,7 +50,7 @@ func_usage () }' < "$progpath" $ECHO $ECHO "run \`$progname --help | more' for full usage" - exit $EXIT_SUCCESS + exit $? } # func_help @@ -69,7 +69,7 @@ func_help () s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/; p; }' < "$progpath" - exit $EXIT_SUCCESS + exit $? } # func_missing_arg argname diff --git a/config/ltmain.m4sh b/config/ltmain.m4sh index 6b8b16d0d..a6afdaf43 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -152,7 +152,7 @@ func_config () $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done - exit $EXIT_SUCCESS + exit $? } # func_features @@ -171,7 +171,7 @@ func_features () $ECHO "disable static libraries" fi - exit $EXIT_SUCCESS + exit $? } # func_enable_tag tagname @@ -392,7 +392,7 @@ Otherwise, only FILE itself is deleted using RM." $ECHO $ECHO "Try \`$progname --help' for more information about other modes." - exit $EXIT_SUCCESS + exit $? } # TEST SUITE MARKER ## NON-FUNCTION