summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-04-10 08:40:56 +0000
committerZac Medico <zmedico@gentoo.org>2007-04-10 08:40:56 +0000
commitdab7b5ad39da1c70982a74ae138ea970860e2d41 (patch)
tree61d7115eb91a7f887cce3a70580c200c190a17ea
parenteb75791d44d2d27d3d82a24b7729188041a3d5c5 (diff)
downloadportage-dab7b5ad39da1c70982a74ae138ea970860e2d41.tar.gz
portage-dab7b5ad39da1c70982a74ae138ea970860e2d41.tar.bz2
portage-dab7b5ad39da1c70982a74ae138ea970860e2d41.zip
For bug #173808, compress ${mandir} all in one go instead of doing subdirectories separately. This allows symlinks that point into sibling directories to get updated properly be ecompressdir.
svn path=/main/trunk/; revision=6362
-rwxr-xr-xbin/prepman13
1 files changed, 1 insertions, 12 deletions
diff --git a/bin/prepman b/bin/prepman
index 65144a437..c17faa1b8 100755
--- a/bin/prepman
+++ b/bin/prepman
@@ -16,15 +16,4 @@ if [[ ! -d ${mandir} ]] ; then
exit 0
fi
-shopt -s nullglob
-
-ret=0
-
-# compress and fixup links in each dir
-for subdir in "${mandir}"/man* "${mandir}"/*/man* ; do
- [[ -d ${subdir} ]] || continue # ignore files named 'man*'
- ecompressdir "/${subdir#${D}}"
- ((ret+=$?))
-done
-
-exit ${ret}
+exec ecompressdir "${mandir#${D}}"