summaryrefslogtreecommitdiffstats
path: root/office/gnucash-docs/gnucash-docs.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/gnucash-docs/gnucash-docs.SlackBuild')
-rw-r--r--office/gnucash-docs/gnucash-docs.SlackBuild21
1 files changed, 9 insertions, 12 deletions
diff --git a/office/gnucash-docs/gnucash-docs.SlackBuild b/office/gnucash-docs/gnucash-docs.SlackBuild
index 063cc837ae..5566d7ded8 100644
--- a/office/gnucash-docs/gnucash-docs.SlackBuild
+++ b/office/gnucash-docs/gnucash-docs.SlackBuild
@@ -2,7 +2,7 @@
# Slackware build script for gnucash-docs
-# Copyright 2018 Lenard Spencer <lspencer31@cfl.rr.com>
+# Copyright 2018, 2019, 2020 Lenard Spencer <lenardrspencer@gmail.com>
# All rights reserved.
#
# Redistribution and use of this script, with or without modification, is
@@ -24,7 +24,7 @@
PRGNAM=gnucash-docs
DESTNAM=gnucash
-VERSION=${VERSION:-3.9}
+VERSION=${VERSION:-3.10}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
@@ -38,10 +38,7 @@ OUTPUT=${OUTPUT:-/tmp}
ARCH=noarch # does not install any binary files
-# Set DOCLANG to C if it is empty:
-if [ ! "$DOCLANG" ]; then
- DOCLANG=C
-fi
+DOCLANG=${DOCLANG:-"C"}
set -e
@@ -69,10 +66,10 @@ make -j1 install DESTDIR=$PKG docdir=/usr/doc/$DESTNAM-$VERSION
if [ "$HTML" = "yes" ]; then
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION/html
- cd guide/${DOCLANG:-C} || cd guide/C
+ cd guide/$DOCLANG || cd guide/C
make html
cp -vR gnucash-guide $PKG/usr/doc/$DESTNAM-$VERSION/html
- cd ../../help/${DOCLANG:-C} || cd ../../help/C
+ cd ../../help/$DOCLANG || cd ../../help/C
make html
cp -vR gnucash-help $PKG/usr/doc/$DESTNAM-$VERSION/html
cd ../..
@@ -81,10 +78,10 @@ fi
if [ -x /opt/fop/fop ]; then
if [ "$PDF" = "yes" ]; then
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
- cd guide/${DOCLANG:-C} || cd guide/C
+ cd guide/$DOCLANG || cd guide/C
make pdf
cp -vR gnucash-guide.pdf $PKG/usr/doc/$DESTNAM-$VERSION
- cd ../../help/${DOCLANG:-C} || cd ../../help/C
+ cd ../../help/$DOCLANG || cd ../../help/C
make pdf
cp -vR gnucash-help.pdf $PKG/usr/doc/$DESTNAM-$VERSION
cd ../..
@@ -93,10 +90,10 @@ fi
if [ "$EPUB" = "yes" ]; then
mkdir -p $PKG/usr/doc/$DESTNAM-$VERSION
- cd guide/${DOCLANG:-C} || cd guide/C
+ cd guide/$DOCLANG || cd guide/C
make epub
cp -vR gnucash-guide.epub $PKG/usr/doc/$DESTNAM-$VERSION
- cd ../../help/${DOCLANG:-C} || cd ../../help/C
+ cd ../../help/$DOCLANG || cd ../../help/C
make epub
cp -vR gnucash-help.epub $PKG/usr/doc/$DESTNAM-$VERSION
cd ../..