changeset 1644:b60836ebb18c

Minor adjustments.
author Matti Hamalainen <ccr@tnsp.org>
date Sat, 30 Jan 2021 15:49:50 +0200
parents 5d56f1311d46
children 4e4498b4558c
files docs/build-docs.sh
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/docs/build-docs.sh	Sat Jan 30 15:45:11 2021 +0200
+++ b/docs/build-docs.sh	Sat Jan 30 15:49:50 2021 +0200
@@ -64,19 +64,19 @@
 	if test -e "$CATALOGS1"; then
 		echo "  * $CATALOGS1 found."
 	else
-		echo "*** xhtml/chunk.xsl not found!"
+		echo "*** $CATALOGS1 not found!"
 		exit 1
 	fi
 	if test -e "$CATALOGS2"; then
 		echo "  * $CATALOGS2 found."
 	else
-		echo "*** xhtml/docbook.xsl not found!"
+		echo "*** $CATALOGS2 not found!"
 		exit 1
 	fi
 	if test -e "$CATALOGS3"; then
 		echo "  * $CATALOGS3 found."
 	else
-		echo "*** fo/docbook.xsl not found!"
+		echo "*** $CATALOGS3 not found!"
 		exit 1
 	fi
 else
@@ -126,11 +126,12 @@
 
 ### Generate PDF
 rm -f "$PDFFILE"
-if test -n "$FOP" && test -x "$FOP" && test -e "$SRCXML" && test -n "$XSLTPROC" && test -x "$XSLTPROC"; then
-	echo "* PDF .."
-#	$XSLTPROC "$SRCFO" /usr/share/xml/docbook/stylesheet/nwalsh/fo/docbook.xsl "$SRCXML"
+if test -n "$FOP" && test -x "$FOP" && test -e "$SRCXML"; then
+	echo "* fop found, trying to generate PDF .."
 	$XSLTPROC -o "$SRCFO" "$CATALOGS3" "$SRCXML" && \
 	$FOP -pdf "$PDFFILE" -fo "$SRCFO"
+else
+	echo "* PDF requirements not satisfied."
 fi
 
 ## Remove temporary files