- Add -Xmx256m automatically on unixish systems.
authorJörg Mayer <jmayer@loplof.de>
Fri, 4 Mar 2005 13:24:47 +0000 (13:24 -0000)
committerJörg Mayer <jmayer@loplof.de>
Fri, 4 Mar 2005 13:24:47 +0000 (13:24 -0000)
- Make build process for A4 and letter pdfs more similar.

svn path=/trunk/; revision=13585

docbook/Makefile
docbook/README.txt

index 7705ef3cc5c2d6d8a3870f7bab593f1fc819bef2..0cd5348e471adf0fad2c68e3b2edeccf2cd22318 100644 (file)
@@ -6,13 +6,17 @@
 #
 
 # formatting objects processor
+# Additional options to fop.
+# This needs to contain at least the argument '-Xmx256m'
+FOP_OPTS=-Xmx256m
 # (comment this out, if you don't want pdf or don't have fop installed)
-# for win32 (cygwin) environments
-FOP="fop-0.20.5/fop.bat"
+# for win32 (cygwin) environments (as of fop-0.20 the cygwin script does
+# not use $FOP_OPTS)
+FOP=FOP_OPTS="${FOP_OPTS}" fop-0.20.5/fop.bat
 # for unix like environments (if you have problems with fop, try to use an absolute path here)
 #FOP="/usr/share/fop-0.20.5/fop.sh"
 # One SUSE 9.1 and 9.2 uncomment the following line (make sure you have at least fop-0.20.5-71.2)
-#FOP="fop"
+FOP=FOP_OPTS="${FOP_OPTS}" fop
 
 # html help compiler (Win32 only)
 # (comment this out, if you don't want chm or don't have hhc installed)
@@ -89,8 +93,7 @@ eug_html_chunked: svn_version.xml
 eug_pdf_us: svn_version.xml
 ifdef FOP
        @ echo --- PDF US PAPER ---
-       # $(XSLTPROC) --nonet custom_layer_pdf.xsl http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl user-guide.xml > user-guide-us.fo
-       $(XSLTPROC) --nonet custom_layer_pdf.xsl user-guide.xml > user-guide-us.fo
+       $(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl user-guide.xml > user-guide-us.fo
        $(FOP) user-guide-us.fo user-guide-us.pdf
 endif
 
@@ -148,8 +151,7 @@ edg_html_chunked: svn_version.xml
 edg_pdf_us: svn_version.xml
 ifdef FOP
        @ echo --- PDF US PAPER ---
-       # $(XSLTPROC) --nonet custom_layer_pdf.xsl http://docbook.sourceforge.net/release/xsl/current/fo/docbook.xsl developer-guide.xml > developer-guide-us.fo
-       $(XSLTPROC) --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide-us.fo
+       $(XSLTPROC) --stringparam paper.type letter --nonet custom_layer_pdf.xsl developer-guide.xml > developer-guide-us.fo
        $(FOP) developer-guide-us.fo developer-guide-us.pdf
 endif
 
index da414a5490d1eb0a9a98edadde4702d53ff29a45..ddc8e05236f9938d81629a61cac97878451a6808 100644 (file)
@@ -68,6 +68,7 @@ As I got OutOfMemoryException when running fop, I had to insert -Xmx256m into th
 java -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
 to:
 java -Xmx256m -cp "%LOCALCLASSPATH%" org.apache.fop.apps.Fop %1 %2 %3 %4 %5 %6 %7 %8
+This should be added automatically on unixish systems.
 
 HTML help compiler (for chm file generation only)
 -------------------------------------------------