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
8 helpers_die "${0##*/}: at least one argument needed"
12 [[ " ${FEATURES} " == *" force-prefix "* ]] || \
13 case "$EAPI" in 0|1|2) ED=${D} ;; esac
15 if [[ ! -d ${ED}usr/share/info ]] ; then
16 install -d "${ED}usr/share/info" || { helpers_die "${0##*/}: failed to install ${ED}usr/share/info"; exit 1; }
19 install -m0644 "$@" "${ED}usr/share/info"
21 if [ $rval -ne 0 ] ; then
23 [ -e "$x" ] || echo "!!! ${0##*/}: $x does not exist" 1>&2
25 helpers_die "${0##*/} failed"