projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a1dfb59
)
manual vimdiff with trunk; add missing dodir if dosym's target directory doesn't...
author
Fabian Groffen
<grobian@gentoo.org>
Thu, 15 Nov 2007 21:23:55 +0000
(21:23 -0000)
committer
Fabian Groffen
<grobian@gentoo.org>
Thu, 15 Nov 2007 21:23:55 +0000
(21:23 -0000)
svn path=/main/branches/prefix/; revision=8509
bin/dosym
patch
|
blob
|
history
diff --git
a/bin/dosym
b/bin/dosym
index 9d924205f2f1348ba8000b819de09abc32c0246c..8d0acd563251fc956dc6b838b4f7a48496e8dadb 100755
(executable)
--- 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}"