From a1cbe2213ba0e5e1cb27c449476a1403b3fa0d5a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 13 Nov 2008 10:40:58 +0000 Subject: let doc split func remove /usr/share/info/dir and compress man and info files --- abuild | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/abuild b/abuild index 7a8af57..6350b27 100755 --- a/abuild +++ b/abuild @@ -311,6 +311,12 @@ doc() { mv "$pkgdir/usr/share/$i" "$subpkgdir/usr/share/" 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 -- cgit v1.2.3-70-g09d2