From 71a41f72cc38e646ed2945f4c7b343a60247d968 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Thu, 11 Jan 2007 18:50:51 +0000 Subject: add support for user-customizable compression #9870 svn path=/main/trunk/; revision=5555 --- bin/prepallman | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'bin/prepallman') diff --git a/bin/prepallman b/bin/prepallman index e89ad7af0..747ed1fac 100755 --- a/bin/prepallman +++ b/bin/prepallman @@ -1,5 +1,5 @@ #!/bin/bash -# Copyright 1999-2006 Gentoo Foundation +# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -7,14 +7,11 @@ source "${PORTAGE_BIN_PATH:-/usr/lib/portage/bin}"/isolated-functions.sh ret=0 -vecho "man:" -for x in "${D}"opt/*/man "${D}"usr/share/man "${D}"usr/local/man "${D}"usr/X11R6/man ; do - if [[ -d ${x} ]] ; then - x=${x#${D}} - x=${x%/man} - prepman "${x}" - ((ret+=$?)) - fi -done +find "${D}" -type d -name man > "${T}"/prepallman.filelist +while read mandir ; do + mandir=${mandir#${D}} + prepman "${mandir%/man}" + ((ret+=$?)) +done < "${T}"/prepallman.filelist exit ${ret} -- cgit v1.2.3-1-g7c22