Last change
on this file since 13708 was 13708, checked in by kjdon, 17 years ago |
modified sh scripts for new gsdl-documentation package, with new locations for source, xsl, and output
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.6 KB
|
Rev | Line | |
---|
[13636] | 1 | #!/bin/sh
|
---|
| 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 |
|
---|
[13708] | 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
|
---|
[13636] | 13 |
|
---|
[13708] | 14 | mkdir $output_dir
|
---|
| 15 |
|
---|
| 16 | langs="en fr es ru"
|
---|
| 17 |
|
---|
[13636] | 18 | echo "processing top level index"
|
---|
[13708] | 19 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-top-index.xsl $source_dir/tutorial_en.xml > $output_dir/index.html
|
---|
[13636] | 20 |
|
---|
| 21 | echo "generating wiki index page"
|
---|
[13708] | 22 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-wiki-index.xsl $source_dir/tutorial_en.xml > $output_dir/wiki-index.txt
|
---|
[13636] | 23 |
|
---|
[13708] | 24 | for l in $langs; do
|
---|
| 25 | echo "Processing $l version"
|
---|
| 26 | mkdir $output_dir/$l
|
---|
| 27 | cd $output_dir/$l
|
---|
| 28 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-index.xsl $source_dir/tutorial_$l.xml > index.html
|
---|
| 29 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-one-html.xsl $source_dir/tutorial_$l.xml > all_tutorials.html
|
---|
| 30 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-many-html.xsl $source_dir/tutorial_$l.xml | perl -S $GSDLHOME/gli/help/splithelpdocument.pl
|
---|
| 31 | cd $top_dir
|
---|
| 32 | done
|
---|
[13636] | 33 |
|
---|
| 34 |
|
---|
| 35 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.