summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-09 01:19:42 +0700
committerWilly Sudiarto Raharjo <willysr@slackbuilds.org>2017-07-12 22:47:44 +0700
commit19a0ac8f64d2c0eb713a9c74a1b4d73cabecbb8e (patch)
treeb286a124434c758308c30bd9c70eae15aaf9ce44
parentd50cde7d17022f57275daad7df949c58f8335636 (diff)
downloadslackbuilds-19a0ac8f64d2c0eb713a9c74a1b4d73cabecbb8e.tar.gz
development/gitstats: Add man page.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r--development/gitstats/gitstats.SlackBuild10
1 files changed, 8 insertions, 2 deletions
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 <willysr@slackbuilds.org>
+# Copyright 2016-2017 Willy Sudiarto Raharjo <willysr@slackbuilds.org>
# 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