From: Zac Medico Date: Tue, 10 Apr 2007 08:41:20 +0000 (-0000) Subject: For bug #173808, compress ${mandir} all in one go instead of doing subdirectories... X-Git-Tag: v2.1.2.4~15 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ddd4810995ce058c9081e80d431a634720cef5c;p=portage.git 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 by ecompressdir. (trunk r6361:6362) svn path=/main/branches/2.1.2/; revision=6363 --- 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}}"