summaryrefslogtreecommitdiffstats
path: root/unshield/build/unshield.SlackBuild
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2008-06-19 19:10:31 +0000
committer Eric Hameleers <alien@slackware.com>2008-06-19 19:10:31 +0000
commit64078a487ba49c97d0718fd091457a95e15161ff (patch)
treea6d28c227a66e28ba23c287f9f896556097771c7 /unshield/build/unshield.SlackBuild
parent954d0cc8559a189184157aa078b2c89bcfbee3fa (diff)
downloadasb-64078a487ba49c97d0718fd091457a95e15161ff.tar.gz
asb-64078a487ba49c97d0718fd091457a95e15161ff.tar.xz
Compress the (new?) man page
Diffstat (limited to 'unshield/build/unshield.SlackBuild')
-rwxr-xr-xunshield/build/unshield.SlackBuild6
1 files changed, 6 insertions, 0 deletions
diff --git a/unshield/build/unshield.SlackBuild b/unshield/build/unshield.SlackBuild
index 4cd81d4b..75fa690a 100755
--- a/unshield/build/unshield.SlackBuild
+++ b/unshield/build/unshield.SlackBuild
@@ -180,6 +180,12 @@ cp -a $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:
cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true