diff options
Diffstat (limited to 'documentation/tools')
-rwxr-xr-x | documentation/tools/poky-docbook-to-pdf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/documentation/tools/poky-docbook-to-pdf b/documentation/tools/poky-docbook-to-pdf index 9ac0b828cf..f55fd278af 100755 --- a/documentation/tools/poky-docbook-to-pdf +++ b/documentation/tools/poky-docbook-to-pdf | |||
@@ -18,11 +18,13 @@ TEMPLATEDIR=$2 | |||
18 | # match your localy installed XSL stylesheets. | 18 | # match your localy installed XSL stylesheets. |
19 | XSL_BASE_URI="http://docbook.sourceforge.net/release/xsl/current" | 19 | XSL_BASE_URI="http://docbook.sourceforge.net/release/xsl/current" |
20 | 20 | ||
21 | # Creates a temporary XSL stylesheet based on titlepage.xsl | ||
21 | xsltproc -o /tmp/titlepage.xsl \ | 22 | xsltproc -o /tmp/titlepage.xsl \ |
22 | --xinclude \ | 23 | --xinclude \ |
23 | $XSL_BASE_URI/template/titlepage.xsl \ | 24 | $XSL_BASE_URI/template/titlepage.xsl \ |
24 | $TEMPLATEDIR/titlepage.templates.xml || exit 1 | 25 | $TEMPLATEDIR/titlepage.templates.xml || exit 1 |
25 | 26 | ||
27 | # Creates the file needed for FOP | ||
26 | xsltproc --xinclude \ | 28 | xsltproc --xinclude \ |
27 | --stringparam hyphenate false \ | 29 | --stringparam hyphenate false \ |
28 | --stringparam formal.title.placement "figure after" \ | 30 | --stringparam formal.title.placement "figure after" \ |
@@ -38,7 +40,7 @@ xsltproc --xinclude \ | |||
38 | $TEMPLATEDIR/poky-db-pdf.xsl \ | 40 | $TEMPLATEDIR/poky-db-pdf.xsl \ |
39 | $1 || exit 1 | 41 | $1 || exit 1 |
40 | 42 | ||
41 | 43 | # Invokes the Java version of FOP. Uses the additional configuration file common/fop-config.xml | |
42 | fop -c $TEMPLATEDIR/fop-config.xml -fo $FO -pdf $PDF || exit 1 | 44 | fop -c $TEMPLATEDIR/fop-config.xml -fo $FO -pdf $PDF || exit 1 |
43 | 45 | ||
44 | rm -f $FO | 46 | rm -f $FO |