From 5070941df3a063763e5e693d6f839d81024f6017 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 13 Mar 2014 19:05:04 +0100 Subject: [PATCH] Remove the hook to compress manpages... no compressed manpages from now on. --- .../post-install/00-compress-manpages.sh | 30 ------------------- 1 file changed, 30 deletions(-) delete mode 100644 common/hooks/post-install/00-compress-manpages.sh diff --git a/common/hooks/post-install/00-compress-manpages.sh b/common/hooks/post-install/00-compress-manpages.sh deleted file mode 100644 index a346a6047e..0000000000 --- a/common/hooks/post-install/00-compress-manpages.sh +++ /dev/null @@ -1,30 +0,0 @@ -# This hook compresses manual pages with gzip(1). - -hook() { - local fpattern="s|${PKGDESTDIR}||g;s|^\./$||g;/^$/d" - local j f dirat lnkat newlnk - - if [ ! -d "${PKGDESTDIR}/usr/share/man" ]; then - return 0 - fi - - find ${PKGDESTDIR}/usr/share/man -type f -follow | while read f - do - j=$(echo "$f"|sed -e "$fpattern") - [ "$j" = "" ] && continue - if $(echo "$j"|grep -q '.*.gz$'); then - continue - fi - if [ -h ${PKGDESTDIR}/"$j" ]; then - dirat=$(dirname "$j") - lnkat=$(readlink ${PKGDESTDIR}/"$j") - newlnk=$(basename "$j") - rm -f ${PKGDESTDIR}/"$j" - cd ${PKGDESTDIR}/"$dirat" - ln -s "${lnkat}".gz "${newlnk}".gz - continue - fi - echo " Compressing manpage: $j..." - gzip -nfq9 ${PKGDESTDIR}/"$j" - done -}