projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bc9dbee
)
create leading directories to match behavior of other do* programs (trunk r6393:6394...
author
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Apr 2007 07:45:14 +0000
(07:45 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sat, 14 Apr 2007 07:45:14 +0000
(07:45 -0000)
svn path=/main/branches/2.1.2/; revision=6397
bin/dohard
patch
|
blob
|
history
diff --git
a/bin/dohard
b/bin/dohard
index ce07f11c3467d8e4dc8a47527910dddc86dbed55..dfd7bd341fa03ab6b21300d4c9504c0a215a8e75 100755
(executable)
--- a/
bin/dohard
+++ b/
bin/dohard
@@
-1,5
+1,5
@@
#!/bin/bash
-# Copyright 1999-200
6
Gentoo Foundation
+# Copyright 1999-200
7
Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
@@
-8,6
+8,7
@@
if [[ $# -ne 2 ]] ; then
exit 1
fi
-target=$1
-linkname=$2
-exec ln -f "${D}${target}" "${D}${linkname}"
+destdir=${2%/*}
+[[ ! -d ${D}${destdir} ]] && dodir "${destdir}"
+
+exec ln -f "${D}$1" "${D}$2"