aboutsummaryrefslogtreecommitdiffstats
path: root/bin/ebuild-helpers/prepalldocs
blob: 3094661f5fbb7ff8a0633fc061108bbfa3287460 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
# 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
fi

if ! ___eapi_has_prefix_variables; then
	ED=${D}
fi

[[ -d ${ED}usr/share/doc ]] || exit 0

ecompressdir --ignore /usr/share/doc/${PF}/html
ecompressdir --queue /usr/share/doc