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

@ -311,6 +311,12 @@ doc() {
mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/" mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/"
fi fi
done 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) # remove if empty, ignore error (not empty)
rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null rmdir "$pkgdir/usr/share" "$pkgdir/usr" 2>/dev/null