system/atop: Add man page.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Duncan Roe 2018-12-11 00:44:24 +07:00 committed by Willy Sudiarto Raharjo
parent d6653a87e9
commit be2821064c
No known key found for this signature in database
GPG key ID: 887B8374D7333381

View file

@ -13,7 +13,7 @@
PRGNAM=atop
VERSION=${VERSION:-2.3.0}
BUILD=${BUILD:-2}
BUILD=${BUILD:-3}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -83,10 +83,11 @@ touch $PKG/var/log/atop/dummy_{before,after}
find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \
| cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
mkdir -p $PKG/usr/man/man{1,5}
mkdir -p $PKG/usr/man/man{1,5,8}
gzip -9c man/atop.1 > $PKG/usr/man/man1/atop.1.gz
gzip -9c man/atopsar.1 > $PKG/usr/man/man1/atopsar.1.gz
gzip -9c man/atoprc.5 > $PKG/usr/man/man5/atoprc.5.gz
gzip -9c man/atopacctd.8 > $PKG/usr/man/man8/atopacctd.8.gz
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a [A-Z][A-Z]* ChangeLog $PKG/usr/doc/$PRGNAM-$VERSION