Last change
on this file since 13864 was 13864, checked in by lh92, 17 years ago |
changed fop command to generate PDF files with userconfig.xml file
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
728 bytes
|
Line | |
---|
1 | #!/bin/sh
|
---|
2 |
|
---|
3 | top_dir=`pwd`
|
---|
4 | shared_dir=`pwd`/../shared
|
---|
5 | source_dir=`pwd`/xml-source
|
---|
6 | processing_dir=`pwd`/processing
|
---|
7 | output_dir=`pwd`/build
|
---|
8 | fop_dir="$shared_dir/fop"
|
---|
9 | export CLASSPATH=$CLASSPATH:$shared_dir:$fop_dir/build/fop.jar:$fop_dir/lib
|
---|
10 |
|
---|
11 | if [ ! -d $output_dir ]; then
|
---|
12 | mkdir $output_dir
|
---|
13 | fi
|
---|
14 |
|
---|
15 | langs="en es ru fr"
|
---|
16 | manuals="Paper User Develop Install"
|
---|
17 |
|
---|
18 | for l in $langs; do
|
---|
19 | echo "Processing $l version"
|
---|
20 | if [ ! -d $output_dir/$l ]; then
|
---|
21 | mkdir $output_dir/$l
|
---|
22 | fi
|
---|
23 | mkdir $output_dir/$l/pdf
|
---|
24 |
|
---|
25 | for m in $manuals; do
|
---|
26 | $fop_dir/fop.sh -c $shared_dir/fop/conf/userconfig.xml -q -xsl $processing_dir/xml-to-pdf.xsl -xml $source_dir/$l/"$m"_"$l".xml -pdf $output_dir/$l/pdf/"$m"_"$l".pdf
|
---|
27 | done
|
---|
28 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.