source: documentation/trunk/tutorials/generate-workshop.sh@ 22365

Last change on this file since 22365 was 20953, checked in by davidb, 14 years ago

ApplyXSLT now takes an extra parameter (for language). Minor tweaks to these scripts to take account of that

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 849 bytes
Line 
1#!/bin/sh
2
3if [ "$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
6fi
7
8top_dir=`pwd`
9shared_dir=`pwd`/../shared
10source_dir=`pwd`/xml-source
11processing_dir=`pwd`/processing
12output_dir=`pwd`/workshop
13
14mkdir $output_dir
15
16echo "processing workshop"
17
18cd $output_dir
19java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT "" $processing_dir/xml-to-workshop.xsl $source_dir/tutorial_en.xml | perl -S $GSDLHOME/gli/help/splithelpdocument.pl
20java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT "" $processing_dir/xml-to-one-workshop.xsl $source_dir/tutorial_en.xml > workshop.html
21cd $top_dir
22
23
24
25
26
Note: See TracBrowser for help on using the repository browser.