diff --git a/mkpkgng.in b/mkpkgng.in index 644ded1..7dd7064 100644 --- a/mkpkgng.in +++ b/mkpkgng.in @@ -114,6 +114,17 @@ set -e info "Installing into the temporary directory." $make install DESTDIR="$tmproot" +# +# Compress man pages +# +find $tmproot -type d -name 'man[0-9]' | +while read mandir ; do + find $mandir -type f -name '*.[0-9]' | + while read manpage ; do + gzip "$manpage" + done +done + # # Generate stub manifest #