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 infodir="/usr/share/info"
10 if [[ -d ${D}$1/share/info ]] ; then
11 infodir="$1/share/info"
17 if [[ ! -d ${D}${infodir} ]] ; then
19 vecho "${0##*/}: '${infodir}' does not exist!"
26 find "${D}${infodir}" -type d -print0 | while read -r -d $'\0' x ; do
27 for f in "${x}"/.keepinfodir*; do
28 [[ -e ${f} ]] && continue 2
30 rm -f "${x}"/dir{,.info}{,.gz,.bz2}
33 has "${EAPI}" 0 1 2 3 || exit 0
34 exec ecompressdir --queue "${infodir}"