2 # Copyright 1999-2012 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 if ! ___eapi_has_prefix_variables; then
16 if [[ ! -d ${ED}${_E_EXEDESTTREE_} ]] ; then
17 install -d "${ED}${_E_EXEDESTTREE_}"
26 if [ -L "${x}" ] ; then
29 elif [ -d "${x}" ] ; then
30 __vecho "doexe: warning, skipping directory ${x}"
35 if [ -e "$mysrc" ] ; then
36 install $EXEOPTIONS "$mysrc" "$ED$_E_EXEDESTTREE_"
38 echo "!!! ${0##*/}: $mysrc does not exist" 1>&2
46 [[ $ret -ne 0 ]] && __helpers_die "${0##*/} failed"