From c3329d9b12a436f3548c36315885f1f908bf98f8 Mon Sep 17 00:00:00 2001 From: Ralf Wildenhues Date: Wed, 2 Feb 2005 22:15:47 +0000 Subject: [PATCH] * 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. --- ChangeLog | 4 ++++ config/getopt.m4sh | 6 +++--- config/ltmain.m4sh | 6 +++--- 3 files changed, 10 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index cc78a21a9..838321c9e 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 e4c239fa8..f133594ba 100644 --- a/config/ltmain.m4sh +++ b/config/ltmain.m4sh @@ -153,7 +153,7 @@ func_config () $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath" done - exit $EXIT_SUCCESS + exit $? } # func_features @@ -172,7 +172,7 @@ func_features () $ECHO "disable static libraries" fi - exit $EXIT_SUCCESS + exit $? } # func_enable_tag tagname @@ -393,7 +393,7 @@ Otherwise, only FILE itself is deleted using RM." $ECHO $ECHO "Try \`$progname --help' for more information about other modes." - exit $EXIT_SUCCESS + exit $? } # Parse options once, thoroughly. This comes as soon as possible in -- 2.47.2