1 # This hook uncompresses man(1) files.
4 local f lnkat mandir
=${PKGDESTDIR}/usr
/share
/man
7 [ -z "$(find $mandir -regex '.*\.\(gz\|bz2\)' -print -quit)" ]; then
12 find $mandir -type l
-regex '.*\.\(gz\|bz2\)' |
while read -r f
; do
13 lnkat
=$
(readlink
"$f")
14 ln -s ${lnkat%.*} ${f%.*}
18 find $mandir -type f
-name '*.gz' -exec gunzip
-v -f {} + &>/dev
/null
19 find $mandir -type f
-name '*.bz2' -exec bunzip2
-v -f {} + &>/dev
/null