summaryrefslogtreecommitdiffstats
path: root/documentation/tools/poky-docbook-to-pdf
diff options
context:
space:
mode:
authorNicolas Dechesne <nicolas.dechesne@linaro.org>2020-10-05 16:30:32 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-06 13:56:17 +0100
commit43d07a285181e64c30d98d10ff93ef50391efe59 (patch)
tree78918fc94d55d44d35e1e3e61c7a6fccc28bca24 /documentation/tools/poky-docbook-to-pdf
parent1fd9c4b2c0ae927df29f7a0d34c3e595bcf48e89 (diff)
downloadpoky-43d07a285181e64c30d98d10ff93ef50391efe59.tar.gz
sphinx: remove DocBook files
The Yocto Project documentation was migrated to Sphinx. Let's remove the deprecated DocBook files. (From yocto-docs rev: 28fb0e63b2fbfd6426b00498bf2682bb53fdd862) Signed-off-by: Nicolas Dechesne <nicolas.dechesne@linaro.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/tools/poky-docbook-to-pdf')
-rwxr-xr-xdocumentation/tools/poky-docbook-to-pdf54
1 files changed, 0 insertions, 54 deletions
diff --git a/documentation/tools/poky-docbook-to-pdf b/documentation/tools/poky-docbook-to-pdf
deleted file mode 100755
index b36e74b6be..0000000000
--- a/documentation/tools/poky-docbook-to-pdf
+++ /dev/null
@@ -1,54 +0,0 @@
1#!/bin/sh
2#
3# SPDX-License-Identifier: CC-BY-2.0-UK
4#
5
6if [ -z "$1" -o -z "$2" ]; then
7 echo "usage: [-v] $0 <docbook file> <templatedir>"
8 echo
9 echo "*NOTE* you need xsltproc, fop and nwalsh docbook stylesheets"
10 echo " installed for this to work!"
11 echo
12 exit 0
13fi
14
15FO=`echo $1 | sed s/.xml/.fo/` || exit 1
16PDF=`echo $1 | sed s/.xml/.pdf/` || exit 1
17TEMPLATEDIR=$2
18
19##
20# These URI should be rewritten by your distribution's xml catalog to
21# match your localy installed XSL stylesheets.
22XSL_BASE_URI="http://docbook.sourceforge.net/release/xsl/current"
23
24# Creates a temporary XSL stylesheet based on titlepage.xsl
25xsltproc -o /tmp/titlepage.xsl \
26 --xinclude \
27 $XSL_BASE_URI/template/titlepage.xsl \
28 $TEMPLATEDIR/titlepage.templates.xml || exit 1
29
30# Creates the file needed for FOP
31xsltproc --xinclude \
32 --stringparam hyphenate false \
33 --stringparam formal.title.placement "figure after" \
34 --stringparam ulink.show 1 \
35 --stringparam body.font.master 9 \
36 --stringparam title.font.master 11 \
37 --stringparam draft.watermark.image "$TEMPLATEDIR/draft.png" \
38 --stringparam chapter.autolabel 1 \
39 --stringparam appendix.autolabel A \
40 --stringparam section.autolabel 1 \
41 --stringparam section.label.includes.component.label 1 \
42 --output $FO \
43 $TEMPLATEDIR/poky-db-pdf.xsl \
44 $1 || exit 1
45
46# Invokes the Java version of FOP. Uses the additional configuration file common/fop-config.xml
47fop -c $TEMPLATEDIR/fop-config.xml -fo $FO -pdf $PDF || exit 1
48
49rm -f $FO
50rm -f /tmp/titlepage.xsl
51
52echo
53echo " #### Success! $PDF ready. ####"
54echo