Last change
on this file was 33116, checked in by ak19, 5 years ago |
The generate-workshop.sh script never used to work with GS3 before. Have now fixed it up for GS3. There's still a file, processing/manifest.xml, which needs to be hand-edited to list the sections and subsections (tutorials) that need to go into a workshop. I've not modified that manifest.xml to bring it up to speed, as Dr Bainbridge will decide on what subsections (tuts) will be covered in the current workshop and into which workshop sections (called Labs) the selected tutorials ought to get organised.
|
-
Property svn:executable
set to
*
-
Property svn:keywords
set to
Author Date Id Revision
|
File size:
1.6 KB
|
Line | |
---|
1 | #!/bin/bash
|
---|
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 |
|
---|
8 | top_dir=`pwd`
|
---|
9 | shared_dir=`pwd`/../shared
|
---|
10 | source_dir=`pwd`/xml-source
|
---|
11 | processing_dir=`pwd`/processing
|
---|
12 | output_dir=`pwd`/workshop
|
---|
13 |
|
---|
14 | if [ ! -d $output_dir ]; then
|
---|
15 | mkdir $output_dir
|
---|
16 | fi
|
---|
17 |
|
---|
18 | echo "processing workshop"
|
---|
19 |
|
---|
20 | cd $output_dir
|
---|
21 | split_help_doc_pl=$GSDLHOME/gli/help/splithelpdocument.pl
|
---|
22 | if [ ! -f "$GSDLHOME/gli/help/splithelpdocument.pl" ]; then
|
---|
23 | split_help_doc_pl=$GSDL3SRCHOME/gli/help/splithelpdocument.pl
|
---|
24 | fi
|
---|
25 |
|
---|
26 | if [ "$GSDL3SRCHOME" == "" ]; then
|
---|
27 | 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 $split_help_doc_pl
|
---|
28 | 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
|
---|
29 | else
|
---|
30 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME -DGSDL3SRCHOME=$GSDL3SRCHOME ApplyXSLT "" $processing_dir/xml-to-workshop.xsl $source_dir/tutorial_en.xml | perl -S $split_help_doc_pl
|
---|
31 | java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME -DGSDL3SRCHOME=$GSDL3SRCHOME ApplyXSLT "" $processing_dir/xml-to-one-workshop.xsl $source_dir/tutorial_en.xml > workshop.html
|
---|
32 |
|
---|
33 | fi
|
---|
34 |
|
---|
35 |
|
---|
36 | cd $top_dir
|
---|
37 |
|
---|
38 |
|
---|
39 |
|
---|
40 |
|
---|
41 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.