From a8a3113a5fe82f24a8b11f864cc0b76a84b83f38 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Thu, 15 Nov 2007 21:23:55 +0000 Subject: [PATCH] manual vimdiff with trunk; add missing dodir if dosym's target directory doesn't exist svn path=/main/branches/prefix/; revision=8509 --- bin/dosym | 3 +++ 1 file changed, 3 insertions(+) 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}" -- 2.26.2