From: Mike Frysinger Date: Sun, 9 Apr 2006 20:28:16 +0000 (-0000) Subject: simpler dosym to make mr bones happy X-Git-Tag: v2.1_pre9~60 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2f4af673720d8230c31fb72e5686fcae6bbd1ec8;p=portage.git simpler dosym to make mr bones happy svn path=/main/trunk/; revision=3108 --- diff --git a/bin/dosym b/bin/dosym index 081e2acde..e0af15e2c 100755 --- a/bin/dosym +++ b/bin/dosym @@ -8,6 +8,7 @@ if [[ $# -ne 2 ]] ; then exit 1 fi -target=$1 -linkname=$2 -exec ln -snf "${target}" "${D}${linkname}" +destdir=${2%/*} +[[ ! -d ${D}${destdir} ]] && dodir "${destdir}" + +exec ln -snf "$1" "${D}$2"