summaryrefslogtreecommitdiffstats
path: root/bin/prepallman
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-01-11 18:50:51 +0000
committerMike Frysinger <vapier@gentoo.org>2007-01-11 18:50:51 +0000
commit71a41f72cc38e646ed2945f4c7b343a60247d968 (patch)
tree55ef76b63b008882005facc90084df255a80e4b5 /bin/prepallman
parent912ffed14090eb8659c9850dc52a88038e960293 (diff)
downloadportage-71a41f72cc38e646ed2945f4c7b343a60247d968.tar.gz
portage-71a41f72cc38e646ed2945f4c7b343a60247d968.tar.bz2
portage-71a41f72cc38e646ed2945f4c7b343a60247d968.zip
add support for user-customizable compression #9870
svn path=/main/trunk/; revision=5555
Diffstat (limited to 'bin/prepallman')
-rwxr-xr-xbin/prepallman17
1 files changed, 7 insertions, 10 deletions
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}