]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix the "ln -s -f" code so that it works also on Solaris.
authorBruno Haible <bruno@clisp.org>
Tue, 18 Feb 2003 20:56:54 +0000 (20:56 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:10:12 +0000 (12:10 +0200)
ChangeLog
config/ltmain.sh

index b8181594a29643169abc1fb43a0235bcdb79fe91..cd895f6d2553e2117b2a09842fdc07b168a1b960 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2003-02-18  Bruno Haible  <haible@clisp.cons.org>
+
+       Fix the 2002-09-16 fix.
+       * ltmain.sh (install): If "ln -s -f" fails (this is the case with
+       /usr/bin/ln on Solaris 2.7), fall back to "rm && ln -s".
+
 2003-02-18  Bruno Haible  <haible@clisp.cons.org>
 
        * config.guess, config.sub: Update to GNU version 2003-02-03.
index 52cc1678cd7e7b6a16863ef4b7ce4895859890db..07c250fb18a71640a006a21d1c76b68a0c83d13a 100644 (file)
@@ -4281,8 +4281,8 @@ relink_command=\"$relink_command\""
            for linkname
            do
              if test "$linkname" != "$realname"; then
-               $show "(cd $destdir && $LN_S -f $realname $linkname)"
-               $run eval "(cd $destdir && $LN_S -f $realname $linkname)"
+               $show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
+               $run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })"
              fi
            done
          fi