From: Michael Matz Date: Tue, 12 Sep 2000 23:26:49 +0000 (+0000) Subject: * ltmain.in: Be careful about filenames with multiple `.'s in X-Git-Tag: release-1-3d~91 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=568b6f4983943b053b9e5913cc7cd5b6fd6d9427;p=thirdparty%2Flibtool.git * ltmain.in: Be careful about filenames with multiple `.'s in them when calculating file extensions. Reported by Joel Reed --- diff --git a/ChangeLog b/ChangeLog index 53e24dc3b..6fa756e25 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2000-09-12 Michael Matz + + * ltmain.in: Be careful about filenames with multiple `.'s in + them when calculating file extensions. + Reported by Joel Reed + 2000-09-12 Gary V. Vaughan libtool.m4 (AC_PROG_LIBTOOL): Removed, as it was triggering a diff --git a/ltmain.in b/ltmain.in index 10a3937dd..19ac7f928 100644 --- a/ltmain.in +++ b/ltmain.in @@ -466,7 +466,7 @@ if test -z "$show_help"; then # Calculate the filename of the output object if compiler does # not support -o with -c if test "$compiler_c_o" = no; then - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\..*$%%'`.${objext} + output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext} lockfile="$output_obj.lock" removelist="$removelist $output_obj $lockfile" trap "$run $rm $removelist; exit 1" 1 2 15