diff options
author | Julian Grinblat <julian@dotcore.co.il> | 2023-09-04 00:34:19 +0900 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2023-09-03 23:19:25 +0700 |
commit | f02b3af09d5211ae1b831ebde0b47c8f9ab01fbb (patch) | |
tree | 8c6d9bf1ef6a8377765472683554c0100eb1af0d /system/yq | |
parent | 9ecbf29341ff18666034951509354d24438dbce7 (diff) |
system/yq: generate docs if pandoc is present
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'system/yq')
-rw-r--r-- | system/yq/yq.SlackBuild | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/system/yq/yq.SlackBuild b/system/yq/yq.SlackBuild index bfbf521b62266..a580177583fbe 100644 --- a/system/yq/yq.SlackBuild +++ b/system/yq/yq.SlackBuild @@ -82,14 +82,15 @@ go build \ install -D -m 0755 yq $PKG/usr/bin/yq -./scripts/generate-man-page-md.sh - -# install pandoc and uncomment 5 lines below to generate man pages. -# ./scripts/generate-man-page.sh -# mkdir -p $PKG/usr/man/man1 -# install -D -m 644 yq.1 $PKG/usr/man/man1 -# 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 command -v pandoc &> /dev/null +then + ./scripts/generate-man-page-md.sh + ./scripts/generate-man-page.sh + mkdir -p $PKG/usr/man/man1 + install -D -m 644 yq.1 $PKG/usr/man/man1 + 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 +fi mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION cp -a \ |