should have been properly propagated.
svn path=/main/branches/prefix/; revision=6391
#!@BASH@
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: /var/cvsroot/gentoo-src/portage/bin/doexe,v 1.10.2.1 2004/12/06 03:01:43 carpaski Exp $
+# $Id: $
+
+source "${PORTAGE_BIN_PATH:-${EPREFIX}/usr/lib/portage/bin}"/isolated-functions.sh
if [[ $# -lt 1 ]] ; then
echo "$0: at least one argument needed" 1>&2
exit 1
fi
-if [[ ! -d ${ED}${EXEDESTTREE} ]] ; then
+if [[ ! -d ${ED}${_E_EXEDESTTREE_} ]] ; then
install -d "${ED}${_E_EXEDESTTREE_}"
fi
for x in "$@" ; do
if [ -L "${x}" ] ; then
cp "${x}" "${T}"
- mysrc="${T}"/`basename "${x}"`
+ mysrc="${T}"/$(basename "${x}")
elif [ -d "${x}" ] ; then
- echo "doexe: warning, skipping directory ${x}"
+ vecho "doexe: warning, skipping directory ${x}"
continue
else
mysrc="${x}"
if [ "$1" == "/" ]; then
export _E_EXEDESTTREE_=""
else
- export EXEDESTTREE="$1"
+ export _E_EXEDESTTREE_="$1"
if [ ! -d "${ED}${_E_EXEDESTTREE_}" ]; then
install -d "${ED}${_E_EXEDESTTREE_}"
fi
if [ "$1" == "/" ]; then
export _E_DOCDESTTREE_=""
else
- export DOCDESTTREE="$1"
+ export _E_DOCDESTTREE_="$1"
if [ ! -d "${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}" ]; then
install -d "${ED}usr/share/doc/${PF}/${_E_DOCDESTTREE_}"
fi
#!@BASH@
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Id: /var/cvsroot/gentoo-src/portage/bin/newexe,v 1.7 2004/10/04 13:56:50 vapier Exp $
+# $Id: $
if [[ -z ${T} ]] || [[ -z ${2} ]] ; then
echo "$0: Need two arguments, old file and new file" 1>&2