Commit 5654828b authored by Oswald Buddenhagen's avatar Oswald Buddenhagen

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's avatarEike Ziller <eike.ziller@qt.io>
parent 75abb5e7
......@@ -26,8 +26,8 @@ if test -L "$me"; then
me=`readlink -nf "$me"`
else
# No readlink(1), so let's try ls -l
me=`ls -l "$me" | sed 's/^.*-> //'`
base=`dirname "$me"`
me=`ls -l "$me" | sed 's/^.*-> //'`
me=`makeAbsolute "$me" "$base"`
fi
fi
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment