From: Ralf Wildenhues Date: Sun, 4 Dec 2005 14:34:03 +0000 (+0000) Subject: * libtoolize.m4sh (func_copy_cb, func_copy_some_files) X-Git-Tag: release-2-1b~375 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3778afd824e309b900407dd2b72722365811b64e;p=thirdparty%2Flibtool.git * libtoolize.m4sh (func_copy_cb, func_copy_some_files) (func_serial_update, func_keyword_update): Fail immediately if some file we may install does not exist. Reported by Troy Benjegerdes . --- diff --git a/ChangeLog b/ChangeLog index 0b2af02d3..01df1efcd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2005-12-04 Ralf Wildenhues + + * libtoolize.m4sh (func_copy_cb, func_copy_some_files) + (func_serial_update, func_keyword_update): Fail immediately + if some file we may install does not exist. + Reported by Troy Benjegerdes . + 2005-12-03 Ralf Wildenhues * TODO: A bunch of items fixed. :) diff --git a/libtoolize.m4sh b/libtoolize.m4sh index df6addcaa..5c097da60 100644 --- a/libtoolize.m4sh +++ b/libtoolize.m4sh @@ -238,8 +238,8 @@ func_copy_cb () copy_return_status=1 # Libtool is probably misinstalled if this happens: - test -f "$my_srcdir/$my_file" || \ - { func_error "\`$my_file' not found in \`$my_srcdir'"; return; } + test -f "$my_srcdir/$my_file" || + func_fatal_error "\`$my_file' not found in \`$my_srcdir'" case $opt_verbose in false) my_copy_msg="file \`$my_destdir/$my_file'" ;; @@ -350,8 +350,7 @@ func_copy_some_files () fi fi else - # Not a regular file - continue + func_fatal_error "\`$my_filename' not found in \`$my_srcdir'" fi $my_copy_cb "$my_filename" "$my_srcdir" "$my_destdir" @@ -712,10 +711,7 @@ func_serial_update () my_srcfile="$my_srcdir/$my_filename" my_destfile="$my_destdir/$my_filename" - test -f "$my_srcfile" || { - func_error "\`$my_srcfile' does not exist." - return - } + test -f "$my_srcfile" || func_fatal_error "\`$my_srcfile' does not exist." if test -f "$my_destfile"; then my_src_serial=`func_serial "$my_srcfile" "$my_macro_regex"` @@ -786,10 +782,7 @@ func_keyword_update () my_keyword_update_p=: - test -f "$my_srcfile" || { - func_error "\`$my_srcfile' does not exist." - return - } + test -f "$my_srcfile" || func_fatal_error "\`$my_srcfile' does not exist." if test -f "$my_destfile"; then my_src_serial=`$SED -e "$my_sed_script" "$my_srcfile"`