source: documentation/stable/manuals/generate-pdf.bat@ 20720

Last change on this file since 20720 was 14998, checked in by oranfry, 16 years ago

committing a windows eqivalent to generate-pdf.sh

File size: 1.2 KB
Line 
1@echo off
2:: top_dir=%CD%
3:: shared_dir=%CD%\..\shared
4:: source_dir=%CD%\xml-source
5:: processing_dir=%CD%\processing
6:: output_dir=`pwd`/build
7:: fop_dir="$shared_dir/fop"
8
9set CLASSPATH=%CLASSPATH%;..\shared;..\shared\fop\fop.jar;..\shared\fop\lib
10
11if not exist build mkdir build
12
13set langs=en es ru fr
14set manuals=Paper User Develop Install
15
16if "%1" == "u" set manuals=User
17if "%1" == "d" set manuals=Develop
18if "%1" == "i" set manuals=Install
19if "%1" == "p" set manuals=Paper
20
21if not "%2" == "all" set langs=%2
22
23for %%l in (%langs%) do if not exist build\%%l mkdir build\%%l
24for %%l in (%langs%) do if not exist build\%%l\pdf mkdir build\%%l\pdf
25for %%l in (%langs%) do for %%m in (%manuals%) do java -classpath ..\shared\fop\lib\xml-apis.jar;..\shared\fop\lib\xercesImpl-2.2.1.jar;..\shared\fop\lib\xalan-2.4.1.jar;..\shared\fop\lib\jai_core.jar;..\shared\fop\lib\jai_codec.jar;..\shared\fop\lib\batik.jar;..\shared\fop\lib\avalon-framework.jar;..\shared\fop\lib\ant-1.5.1.jar;..\shared\fop\build\fop.jar;..\shared;..\shared\fop\build\fop.jar;..\shared\fop\lib org.apache.fop.apps.Fop -c ..\shared\fop\conf\userconfig.xml -q -xsl processing\xml-to-pdf.xsl -xml xml-source\%%l\%%m_%%l.xml -pdf build\%%l\pdf\%%m_%%l.pdf
Note: See TracBrowser for help on using the repository browser.