2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
5 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
7 if [[ $# -lt 1 ]] ; then
8 helpers_die "${0##*/}: at least one argument needed"
12 [[ " ${USE} " == *" prefix "* ]] || \
13 case "$EAPI" in 0|1|2) ED=${D} ;; esac
15 if [[ ! -d ${ED}${_E_EXEDESTTREE_} ]] ; then
16 install -d "${ED}${_E_EXEDESTTREE_}"
25 if [ -L "${x}" ] ; then
28 elif [ -d "${x}" ] ; then
29 vecho "doexe: warning, skipping directory ${x}"
34 if [ -e "$mysrc" ] ; then
35 install $EXEOPTIONS "$mysrc" "$ED$_E_EXEDESTTREE_"
37 echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
45 [[ $ret -ne 0 ]] && helpers_die "${0##*/} failed"