fix hand-crafted symlink resolution

the base directory for making the symlink target absolute is of course
the dirname of the original file, not the target itself.

Change-Id: If5171ead8da0aa2afcaa8ccd6365771441440146
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Oswald Buddenhagen
2016-09-27 13:21:32 +02:00
parent 75abb5e7c3
commit 5654828b22

View File

@@ -26,8 +26,8 @@ if test -L "$me"; then
me=`readlink -nf "$me"` me=`readlink -nf "$me"`
else else
# No readlink(1), so let's try ls -l # No readlink(1), so let's try ls -l
me=`ls -l "$me" | sed 's/^.*-> //'`
base=`dirname "$me"` base=`dirname "$me"`
me=`ls -l "$me" | sed 's/^.*-> //'`
me=`makeAbsolute "$me" "$base"` me=`makeAbsolute "$me" "$base"`
fi fi
fi fi