]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
fix --mode=finish
authorCharles Wilson <libtool@cwilson.fastmail.fm>
Sun, 22 Aug 2010 07:39:21 +0000 (09:39 +0200)
committerPaolo Bonzini <bonzini@gnu.org>
Sun, 22 Aug 2010 07:39:21 +0000 (09:39 +0200)
* libltdl/config/ltmain.m4sh (func_mode_finish): Invert then/else
blocks of the "if $opt_dry_run" conditional.

libltdl/config/ltmain.m4sh

index 4e922acd5b491549837e377541ebc9c88ede0cf9..e4df9505e92ba14a81b561e43847939c303445cc 100644 (file)
@@ -1428,6 +1428,10 @@ func_mode_finish ()
 
       # Remove sysroot references
       if $opt_dry_run; then
+        for lib in $libs; do
+          echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
+        done
+      else
         tmpdir=`func_mktempdir`
         for lib in $libs; do
          sed -e "${sysroot_cmd} s/\([ ']-[LR]\)=/\1/g; s/\([ ']\)=/\1/g" $lib \
@@ -1435,10 +1439,6 @@ func_mode_finish ()
          mv -f $tmpdir/tmp-la $lib
        done
         ${RM}r "$tmpdir"
-      else
-        for lib in $libs; do
-          echo "removing references to $lt_sysroot and \`=' prefixes from $lib"
-        done
       fi
     fi