5624 |
|
|
5625 |
if test "$#" -gt 0; then |
if test "$#" -gt 0; then |
5626 |
# Delete the old symlinks, and create new ones. |
# Delete the old symlinks, and create new ones. |
5627 |
|
# Try `ln -sf' first, because the `ln' binary might depend on |
5628 |
|
# the symlink we replace! Solaris /bin/ln does not understand -f, |
5629 |
|
# so we also need to try rm && ln -s. |
5630 |
for linkname |
for linkname |
5631 |
do |
do |
5632 |
if test "$linkname" != "$realname"; then |
if test "$linkname" != "$realname"; then |
5633 |
$show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" |
$show "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" |
5634 |
$run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)" |
$run eval "(cd $destdir && { $LN_S -f $realname $linkname || { $rm $linkname && $LN_S $realname $linkname; }; })" |
5635 |
fi |
fi |
5636 |
done |
done |
5637 |
fi |
fi |