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

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

update paths

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.1 KB
Line 
1#!/bin/sh
2
3gsdlhome=$GSDLHOME
4shared="../shared"
5export CLASSPATH=$CLASSPATH:$shared:$shared/fop/build/fop.jar:$shared/fop/lib
6fop="$shared/fop"
7processing="processing"
8
9if [ "$gsdlhome" == "" ]; then
10 # assume tutorials in a subdir of gsdl
11 pushd .. > /dev/null
12 gsdlhome=`pwd`
13 popd > /dev/null
14fi
15
16if [ ! -d build ]; then
17 mkdir build
18fi
19
20cd build
21
22echo "procesing english manuals"
23if [ ! -d en ]; then
24 mkdir en
25fi
26cd en
27mkdir pdf
28
29#back to the manual directory
30cd ..
31cd ..
32
33pdf="build/en/pdf"
34#echo "User's manual (english)"
35#$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/User_en.xml -pdf $pdf/User_en.pdf
36echo "Developer's manual (english)"
37$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/en/Develop_en.xml -pdf $pdf/Develop_en.pdf
38echo "Installer's manual (english)"
39$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/en/Install_en.xml -pdf $pdf/Install_en.pdf
40echo "From Paper to Collection (english)"
41$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/en/Paper_en.xml -pdf $pdf/Paper_en.pdf
42
43
44echo "procesing french manuals"
45cd build
46if [ ! -d fr ]; then
47 mkdir fr
48fi
49cd fr
50mkdir pdf
51cd ..
52cd ..
53pdf="build/fr/pdf"
54
55#echo "User's manual (french)"
56#$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/fr/User_fr.xml -pdf $pdf/User_fr.pdf
57echo "Developer's manual (french)"
58$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/fr/Develop_fr.xml -pdf $pdf/Develop_fr.pdf
59echo "Installer's manual (french)"
60$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/fr/Install_fr.xml -pdf $pdf/Install_fr.pdf
61echo "From Paper to Collection (french)"
62$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/fr/Paper_fr.xml -pdf $pdf/Paper_fr.pdf
63
64
65echo "procesing spanish manuals"
66cd build
67if [ ! -d es ]; then
68 mkdir es
69fi
70cd es
71mkdir pdf
72cd ..
73cd ..
74pdf="build/es/pdf"
75
76#echo "User's manual (spanish)"
77#$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/es/User_es.xml -pdf $pdf/User_es.pdf
78echo "Developer's manual (spanish)"
79$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/es/Develop_es.xml -pdf $pdf/Develop_es.pdf
80echo "Installer's manual (spanish)"
81$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/es/Install_es.xml -pdf $pdf/Install_es.pdf
82echo "From Paper to Collection (spanish)"
83$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/es/Paper_es.xml -pdf $pdf/Paper_es.pdf
84
85
86echo "procesing russian manuals"
87cd build
88if [ ! -d ru ]; then
89 mkdir ru
90fi
91cd ru
92mkdir pdf
93cd ..
94cd ..
95pdf="build/ru/pdf"
96#echo "User's manual (russian)"
97#$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/ru/User_ru.xml -pdf $pdf/User_ru.pdf
98echo "Developer's manual (russian)"
99$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/ru/Develop_ru.xml -pdf $pdf/Develop_ru.pdf
100echo "User's manual (russian)"
101$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/ru/Install_ru.xml -pdf $pdf/Install_ru.pdf
102echo "From Paper to Collection (russian)"
103$fop/fop.sh -q -xsl $processing/xml-to-pdf.xsl -xml xml-source/ru/Paper_ru.xml -pdf $pdf/Paper_ru.pdf
Note: See TracBrowser for help on using the repository browser.