diff options
author | Brian Dolbec <dolsen@gentoo.org> | 2014-03-26 06:52:42 -0700 |
---|---|---|
committer | Brian Dolbec <dolsen@gentoo.org> | 2014-03-26 06:52:42 -0700 |
commit | 276611668673967d8dd76caebb1e427dd10b3ff2 (patch) | |
tree | 479b3b5dccbc0dfd96c617908eb21946e6785eeb /bin/ebuild-helpers/prepalldocs | |
parent | Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage into public_api (diff) | |
download | gentoo-portage-public_api.tar.xz gentoo-portage-public_api.zip |
Merge branch 'master' of git+ssh://git.overlays.gentoo.org/proj/portage into public_apipublic_api
Diffstat (limited to 'bin/ebuild-helpers/prepalldocs')
-rwxr-xr-x | bin/ebuild-helpers/prepalldocs | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/bin/ebuild-helpers/prepalldocs b/bin/ebuild-helpers/prepalldocs index 560a02bcbc9..3094661f5fb 100755 --- a/bin/ebuild-helpers/prepalldocs +++ b/bin/ebuild-helpers/prepalldocs @@ -1,15 +1,21 @@ #!/bin/bash -# Copyright 1999-2011 Gentoo Foundation +# Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh +if ___eapi_has_docompress; then + die "'${0##*/}' has been banned for EAPI '$EAPI'" + exit 1 +fi + if [[ -n $1 ]] ; then - vecho "${0##*/}: invalid usage; takes no arguments" 1>&2 + __vecho "${0##*/}: invalid usage; takes no arguments" 1>&2 fi -[[ " ${FEATURES} " == *" force-prefix "* ]] || \ - case "$EAPI" in 0|1|2) ED=${D} ;; esac +if ! ___eapi_has_prefix_variables; then + ED=${D} +fi [[ -d ${ED}usr/share/doc ]] || exit 0 |