Last change
on this file since 18846 was 18754, checked in by oranfry, 15 years ago |
cleaning up a few properties
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.3 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | if [ "$GSDLHOME" == "" ]; then
|
---|
4 | echo "You must run 'source setup.bash' in the top level folder of your Greenstone installation before running this script"
|
---|
5 | exit
|
---|
6 | fi
|
---|
7 |
|
---|
8 | top_dir=`pwd`
|
---|
9 | shared_dir=`pwd`/../shared
|
---|
10 | source_dir=`pwd`/xml-source
|
---|
11 | processing_dir=`pwd`/processing
|
---|
12 | output_dir=`pwd`/html
|
---|
13 |
|
---|
14 | export CLASSPATH=$shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar
|
---|
15 |
|
---|
16 | mkdir $output_dir
|
---|
17 |
|
---|
18 | langs="en fr es ru"
|
---|
19 |
|
---|
20 | echo "processing top level index"
|
---|
21 | java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-top-index.xsl $source_dir/tutorial_en.xml > $output_dir/index.html
|
---|
22 |
|
---|
23 | echo "generating wiki index page"
|
---|
24 | java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-wiki-index.xsl $source_dir/tutorial_en.xml > $output_dir/wiki-index.txt
|
---|
25 |
|
---|
26 | for l in $langs; do
|
---|
27 | echo "Processing $l version"
|
---|
28 | mkdir $output_dir/$l
|
---|
29 | cd $output_dir/$l
|
---|
30 | java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-index.xsl $source_dir/tutorial_$l.xml > index.html
|
---|
31 | java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-one-html.xsl $source_dir/tutorial_$l.xml > all_tutorials.html
|
---|
32 | java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-many-html.xsl $source_dir/tutorial_$l.xml | perl -S $GSDLHOME/gli/help/splithelpdocument.pl
|
---|
33 | cd $top_dir
|
---|
34 | done
|
---|
35 |
|
---|
36 |
|
---|
37 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.