glade: Compress man pages.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackware-id.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-10-02 09:29:29 +07:00
parent 3998c4f650
commit d299f8ddb1
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -26,7 +26,7 @@
PRGNAM=glade PRGNAM=glade
VERSION=${VERSION:-3.20.0} VERSION=${VERSION:-3.20.0}
BUILD=${BUILD:-2} BUILD=${BUILD:-3}
TAG=${TAG:-_msb} TAG=${TAG:-_msb}
if [ -z "$ARCH" ]; then if [ -z "$ARCH" ]; then
@ -98,6 +98,9 @@ find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | gr
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a AUTHORS COPYING* INSTALL NEWS README* TODO $PKG/usr/doc/$PRGNAM-$VERSION cp -a AUTHORS COPYING* INSTALL NEWS README* TODO $PKG/usr/doc/$PRGNAM-$VERSION
find $PKG/usr/man -type f -exec gzip -9 {} \;
for i in $(find $PKG/usr/man -type l) ; do ln -s $(readlink $i).gz $i.gz ; rm $i ; done
# If there's a ChangeLog, installing at least part of the recent history # If there's a ChangeLog, installing at least part of the recent history
# is useful, but don't let it get totally out of control: # is useful, but don't let it get totally out of control:
if [ -r ChangeLog ]; then if [ -r ChangeLog ]; then