Last change
on this file since 20956 was 14998, checked in by oranfry, 15 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 |
|
---|
9 | set CLASSPATH=%CLASSPATH%;..\shared;..\shared\fop\fop.jar;..\shared\fop\lib
|
---|
10 |
|
---|
11 | if not exist build mkdir build
|
---|
12 |
|
---|
13 | set langs=en es ru fr
|
---|
14 | set manuals=Paper User Develop Install
|
---|
15 |
|
---|
16 | if "%1" == "u" set manuals=User
|
---|
17 | if "%1" == "d" set manuals=Develop
|
---|
18 | if "%1" == "i" set manuals=Install
|
---|
19 | if "%1" == "p" set manuals=Paper
|
---|
20 |
|
---|
21 | if not "%2" == "all" set langs=%2
|
---|
22 |
|
---|
23 | for %%l in (%langs%) do if not exist build\%%l mkdir build\%%l
|
---|
24 | for %%l in (%langs%) do if not exist build\%%l\pdf mkdir build\%%l\pdf
|
---|
25 | for %%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.