have dosym handle prefix when given an absolute path.
authorKito <kito@gentoo.org>
Sat, 3 Dec 2005 17:38:04 +0000 (17:38 -0000)
committerKito <kito@gentoo.org>
Sat, 3 Dec 2005 17:38:04 +0000 (17:38 -0000)
svn path=/main/branches/prefix/; revision=2328

bin/dosym

index c41045fdd2b649117407c27796b2ee3d88abd806..a1e990305c884143ae1eab123301718feab6f124 100755 (executable)
--- a/bin/dosym
+++ b/bin/dosym
@@ -10,4 +10,5 @@ fi
 
 target="${1}"
 linkname="${2}"
+[[ ${target:0:1} == "/" ]] && target="${PREFIX}${target}"
 ln -snf "${target}" "${D}${linkname}"