#!/bin/sh if [ "$GSDLHOME" == "" ]; then echo You must run \'source setup.bash\' in the top level folder of your Greenstone installation before running this script exit fi top_dir=`pwd` shared_dir=`pwd`/../shared source_dir=`pwd`/xml-source processing_dir=`pwd`/processing output_dir=`pwd`/workshop mkdir $output_dir echo "processing workshop" cd $output_dir java -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 java -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 cd $top_dir