summaryrefslogtreecommitdiffstats
path: root/podofo
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2011-05-15 22:03:44 +0000
committer Eric Hameleers <alien@slackware.com>2011-05-15 22:03:44 +0000
commit23bca972653678e9e144502d89bd47b5b93c0b57 (patch)
tree2a85474dafafd19f4fa6d1b2835e4adcdad2a9d4 /podofo
parent860991d6c50b976a805a91e926435c150ac49c91 (diff)
downloadasb-23bca972653678e9e144502d89bd47b5b93c0b57.tar.gz
asb-23bca972653678e9e144502d89bd47b5b93c0b57.tar.xz
Compress those man pages!
Diffstat (limited to 'podofo')
-rwxr-xr-xpodofo/build/podofo.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/podofo/build/podofo.SlackBuild b/podofo/build/podofo.SlackBuild
index c83a6162..83766eb2 100755
--- a/podofo/build/podofo.SlackBuild
+++ b/podofo/build/podofo.SlackBuild
@@ -172,6 +172,12 @@ cat $SRCDIR/$(basename $0) > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
chown -R root:root $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/doc -type f -exec chmod 644 {} \;
+# Compress the man page(s):
+if [ -d $PKG/usr/man ]; then
+ find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
+ for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
+fi
+
# Strip binaries (if any):
find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true