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

Last change on this file since 14835 was 13708, checked in by kjdon, 14 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: 843 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.