From: Fabian Groffen Date: Thu, 15 Nov 2007 21:23:55 +0000 (-0000) Subject: manual vimdiff with trunk; add missing dodir if dosym's target directory doesn't... X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a8a3113a5fe82f24a8b11f864cc0b76a84b83f38;p=portage.git manual vimdiff with trunk; add missing dodir if dosym's target directory doesn't exist svn path=/main/branches/prefix/; revision=8509 --- diff --git a/bin/dosym b/bin/dosym index 9d924205f..8d0acd563 100755 --- a/bin/dosym +++ b/bin/dosym @@ -11,5 +11,8 @@ fi target="${1}" linkname="${2}" [[ ${target:0:1} == "/" ]] && target="${EPREFIX}${target}" +destdir=${linkname%/*} +[[ ! -d ${ED}${destdir} ]] && dodir "${destdir}" + exec ln -snf "${target}" "${ED}/${linkname}"