abuild: compress man pages

This commit is contained in:
Eivind Uggedal 2014-06-07 13:47:47 +00:00 committed by Natanael Copa
parent 72f5a04b7f
commit cabeb70e10
1 changed files with 5 additions and 0 deletions

View File

@ -1233,6 +1233,11 @@ default_doc() {
fi
done
# compress man pages
find "$subpkgdir"/usr/share/man/*[1-9] \
-type f \! -name \*.gz \! -name \*.bz2 2>/dev/null |
xargs -r gzip -9
rm -f "$subpkgdir/usr/share/info/dir"
# remove if empty, ignore error (not empty)