From: Michael Matz Date: Tue, 12 Sep 2000 23:10:46 +0000 (+0000) Subject: * ltmain.in: Be careful about filenames with multiple `.'s in X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d3e1f24ca6018a867ee20bca1fd25c02f8c9f316;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 c162d8e02..b76cf4f24 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-04 Alexandre Oliva * tests/*.test (CONFIG_SITE): Ultrix's /bin/sh fails on diff --git a/ltmain.in b/ltmain.in index 6f9b19f3a..6b6df770f 100644 --- a/ltmain.in +++ b/ltmain.in @@ -390,7 +390,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