source: trunk/gsdl-documentation/manuals/generate-pdf.sh@ 13864

Last change on this file since 13864 was 13864, checked in by lh92, 15 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
3top_dir=`pwd`
4shared_dir=`pwd`/../shared
5source_dir=`pwd`/xml-source
6processing_dir=`pwd`/processing
7output_dir=`pwd`/build
8fop_dir="$shared_dir/fop"
9export CLASSPATH=$CLASSPATH:$shared_dir:$fop_dir/build/fop.jar:$fop_dir/lib
10
11if [ ! -d $output_dir ]; then
12 mkdir $output_dir
13fi
14
15langs="en es ru fr"
16manuals="Paper User Develop Install"
17
18for 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
28done
Note: See TracBrowser for help on using the repository browser.