Changeset 33116

Show
Ignore:
Timestamp:
29.05.2019 17:55:09 (3 weeks ago)
Author:
ak19
Message:

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.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials/generate-workshop.sh

    r20953 r33116  
    1 #!/bin/sh 
     1#!/bin/bash 
    22 
    33if [ "$GSDLHOME" == "" ]; then 
     
    1212output_dir=`pwd`/workshop 
    1313 
    14 mkdir $output_dir 
     14if [ ! -d $output_dir ]; then 
     15    mkdir $output_dir 
     16fi 
    1517 
    1618echo "processing workshop" 
    1719 
    1820cd $output_dir 
    19 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 
    20 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 
     21split_help_doc_pl=$GSDLHOME/gli/help/splithelpdocument.pl 
     22if [ ! -f "$GSDLHOME/gli/help/splithelpdocument.pl" ]; then 
     23    split_help_doc_pl=$GSDL3SRCHOME/gli/help/splithelpdocument.pl 
     24fi 
     25 
     26if [ "$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 
     29else 
     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 
     33fi 
     34 
     35 
    2136cd $top_dir 
    2237