From 19a0ac8f64d2c0eb713a9c74a1b4d73cabecbb8e Mon Sep 17 00:00:00 2001 From: Willy Sudiarto Raharjo Date: Sun, 9 Jul 2017 01:19:42 +0700 Subject: development/gitstats: Add man page. Signed-off-by: Willy Sudiarto Raharjo --- development/gitstats/gitstats.SlackBuild | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'development/gitstats') diff --git a/development/gitstats/gitstats.SlackBuild b/development/gitstats/gitstats.SlackBuild index 529f1fcc62..72be657fae 100644 --- a/development/gitstats/gitstats.SlackBuild +++ b/development/gitstats/gitstats.SlackBuild @@ -2,7 +2,7 @@ # Slackware build script for gitstats -# Copyright 2016 Willy Sudiarto Raharjo +# Copyright 2016-2017 Willy Sudiarto Raharjo # All rights reserved. # # Redistribution and use of this script, with or without modification, is @@ -24,7 +24,7 @@ PRGNAM=gitstats VERSION=${VERSION:-20160102} -BUILD=${BUILD:-1} +BUILD=${BUILD:-2} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -78,6 +78,12 @@ sed -i "s|VERSION = 0|VERSION = $VERSION|" $PKG/usr/bin/$PRGNAM 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/man1/ +pod2man doc/gitstats.pod $PKG/usr/man/man1/gitstats.1 + +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 + mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a doc/* $PKG/usr/doc/$PRGNAM-$VERSION cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild -- cgit v1.2.3