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

Last change on this file since 20953 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
RevLine 
[13636]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
[13708]8top_dir=`pwd`
9shared_dir=`pwd`/../shared
10source_dir=`pwd`/xml-source
11processing_dir=`pwd`/processing
12output_dir=`pwd`/workshop
[13636]13
[13708]14mkdir $output_dir
15
[13636]16echo "processing workshop"
17
[13708]18cd $output_dir
[20953]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
[13708]21cd $top_dir
[13636]22
23
24
25
[13708]26
Note: See TracBrowser for help on using the repository browser.