diff options
author | Eric Hameleers <alien@slackware.com> | 2022-05-30 19:14:45 +0000 |
---|---|---|
committer | Eric Hameleers <alien@slackware.com> | 2022-05-30 19:14:45 +0000 |
commit | 1d65d070da798c86700ddd2fa62da16e1717cb11 (patch) | |
tree | 02c660190d9281148d0519ec48066c9d3a81a5a2 /runc/build | |
parent | 301003c185f3fdd6301890498f3fb3b6241890a7 (diff) | |
download | asb-1d65d070da798c86700ddd2fa62da16e1717cb11.tar.gz asb-1d65d070da798c86700ddd2fa62da16e1717cb11.tar.xz |
runc: compress the man pages
Diffstat (limited to 'runc/build')
-rwxr-xr-x | runc/build/runc.SlackBuild | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/runc/build/runc.SlackBuild b/runc/build/runc.SlackBuild index ee417ba8..74538181 100755 --- a/runc/build/runc.SlackBuild +++ b/runc/build/runc.SlackBuild @@ -180,6 +180,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 |