Support PORTAGE_REPOSITORIES environmental variable, which overrides
[portage.git] / bin / ebuild-helpers / prepalldocs
1 #!/bin/bash
2 # Copyright 1999-2012 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 ___eapi_has_docompress; then
8         die "'${0##*/}' has been banned for EAPI '$EAPI'"
9         exit 1
10 fi
11
12 if [[ -n $1 ]] ; then
13         __vecho "${0##*/}: invalid usage; takes no arguments" 1>&2
14 fi
15
16 if ! ___eapi_has_prefix_variables; then
17         ED=${D}
18 fi
19
20 [[ -d ${ED}usr/share/doc ]] || exit 0
21
22 ecompressdir --ignore /usr/share/doc/${PF}/html
23 ecompressdir --queue /usr/share/doc