For bug #173808, compress ${mandir} all in one go instead of doing subdirectories...
authorZac Medico <zmedico@gentoo.org>
Tue, 10 Apr 2007 08:41:20 +0000 (08:41 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 10 Apr 2007 08:41:20 +0000 (08:41 -0000)
svn path=/main/branches/2.1.2/; revision=6363

bin/prepman

index 65144a437bd46f2d4c7d42e2df0593b5bc739710..c17faa1b87727bceb5bf768351d1eb63d7e22758 100755 (executable)
@@ -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}}"