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

Last change on this file since 13782 was 13782, checked in by lh92, 15 years ago

modified shell scripts

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 691 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 " #fr es ru
16manuals="Develop Install Paper" #User
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 -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
29
Note: See TracBrowser for help on using the repository browser.