let doc split func remove /usr/share/info/dir

and compress man and info files
This commit is contained in:
Natanael Copa 2008-11-13 10:40:58 +00:00
parent 92cb48ffc9
commit a1cbe2213b

6
abuild
View File

@ -312,6 +312,12 @@ doc() {
fi
done
rm -f "$subpkgdir/usr/share/info/dir"
# compress info and man pages
find "$subpkgdir/usr/share" \( -name '*.info' -o name '*.info-[1-9]' \
-o -name '*.[1-9]' \) -exec gzip {} \;
# remove if empty, ignore error (not empty)
rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null