summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/ebuild-helpers/doexe9
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/ebuild-helpers/doexe b/bin/ebuild-helpers/doexe
index 19e80b2d0..a6d679d07 100755
--- a/bin/ebuild-helpers/doexe
+++ b/bin/ebuild-helpers/doexe
@@ -14,12 +14,15 @@ if [[ ! -d ${D}${_E_EXEDESTTREE_} ]] ; then
install -d "${D}${_E_EXEDESTTREE_}"
fi
+TMP=$T/.doexe_tmp
+mkdir "$TMP"
+
ret=0
for x in "$@" ; do
if [ -L "${x}" ] ; then
- cp "${x}" "${T}"
- mysrc="$T/${x##*/}"
+ cp "$x" "$TMP"
+ mysrc=$TMP/${x##*/}
elif [ -d "${x}" ] ; then
vecho "doexe: warning, skipping directory ${x}"
continue
@@ -35,4 +38,6 @@ for x in "$@" ; do
((ret+=$?))
done
+rm -rf "$TMP"
+
exit $ret