Support FEATURES=force-prefix.
[portage.git] / bin / ebuild-helpers / prepalldocs
1 #!/bin/bash
2 # Copyright 1999-2011 Gentoo Foundation
3 # Distributed under the terms of the GNU General Public License v2
4
5 source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh
6
7 if [[ -n $1 ]] ; then
8         vecho "${0##*/}: invalid usage; takes no arguments" 1>&2
9 fi
10
11 [[ " ${FEATURES} " == *" force-prefix "* ]] || \
12         case "$EAPI" in 0|1|2) ED=${D} ;; esac
13
14 [[ -d ${ED}usr/share/doc ]] || exit 0
15
16 ecompressdir --ignore /usr/share/doc/${PF}/html
17 ecompressdir --queue /usr/share/doc