Last change
on this file since 13881 was 13881, checked in by lh92, 17 years ago |
added interactions
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
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 | echo -e "choose a manual to work with: \n 'all' for all the manuals\n 'u' for the User's Guide\n 'd' for the Developer's Guide\n 'i' for the Installer's Guide\n 'p' for From Paper to Collection"
|
---|
19 | read cmd
|
---|
20 |
|
---|
21 |
|
---|
22 | if [ $cmd = 'u' ]; then
|
---|
23 | manuals="User"
|
---|
24 | fi
|
---|
25 | if [ $cmd = 'd' ]; then
|
---|
26 | manuals="Develop"
|
---|
27 | fi
|
---|
28 | if [ $cmd = 'i' ]; then
|
---|
29 | manuals="Install"
|
---|
30 | fi
|
---|
31 | if [ $cmd = 'p' ]; then
|
---|
32 | manuals="Paper"
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | echo -e "choose a language to work with: \n all, en, fr, es, or ru"
|
---|
37 | read cmd
|
---|
38 | if [ $cmd != 'all' ]; then
|
---|
39 | langs=$cmd
|
---|
40 | fi
|
---|
41 |
|
---|
42 |
|
---|
43 | for l in $langs; do
|
---|
44 |
|
---|
45 | if [ ! -d $output_dir/$l ]; then
|
---|
46 | mkdir $output_dir/$l
|
---|
47 | fi
|
---|
48 | if [ ! -d $output_dir/$l/pdf ]; then
|
---|
49 | mkdir $output_dir/$l/pdf
|
---|
50 | fi
|
---|
51 |
|
---|
52 | for m in $manuals; do
|
---|
53 | echo -e "\nprocessing the $m manual in $l"
|
---|
54 | $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
|
---|
55 | echo -e "done!\n"
|
---|
56 | done
|
---|
57 | done
|
---|
Note:
See
TracBrowser
for help on using the repository browser.