aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-04-09 20:28:16 (GMT)
committerMike Frysinger <vapier@gentoo.org>2006-04-09 20:28:16 (GMT)
commit2f4af673720d8230c31fb72e5686fcae6bbd1ec8 (patch)
treeef5f749e48ea37b1917da619b94c1a431b898204
parentRemove dead code from portage.digestParseFile(). (diff)
downloadportage-2f4af673720d8230c31fb72e5686fcae6bbd1ec8.zip
portage-2f4af673720d8230c31fb72e5686fcae6bbd1ec8.tar.gz
portage-2f4af673720d8230c31fb72e5686fcae6bbd1ec8.tar.bz2
simpler dosym to make mr bones happy
svn path=/main/trunk/; revision=3108
-rwxr-xr-xbin/dosym7
1 files changed, 4 insertions, 3 deletions
diff --git a/bin/dosym b/bin/dosym
index 081e2ac..e0af15e 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"