Ignore:
Timestamp:
03/23/09 15:58:44 (12 years ago)
Author:
oranfry
Message:

cleaning up a few properties

Location:
documentation/trunk/tutorials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • documentation/trunk/tutorials

    • Property svn:ignore set to
      html
  • documentation/trunk/tutorials/generate-html.sh

    r13708 r18754  
    1 #!/bin/sh
     1#!/bin/bash
    22
    33if [ "$GSDLHOME" == "" ]; then
    4     echo You must run \'source setup.bash\' in the top level folder of your Greenstone installation before running this script
     4    echo "You must run 'source setup.bash' in the top level folder of your Greenstone installation before running this script"
    55    exit
    66fi
     
    1212output_dir=`pwd`/html
    1313
     14export CLASSPATH=$shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar
     15
    1416mkdir $output_dir
    1517
     
    1719
    1820echo "processing top level index"
    19 java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-top-index.xsl  $source_dir/tutorial_en.xml > $output_dir/index.html
     21java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-top-index.xsl  $source_dir/tutorial_en.xml > $output_dir/index.html
    2022
    2123echo "generating wiki index page"
    22 java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-wiki-index.xsl $source_dir/tutorial_en.xml > $output_dir/wiki-index.txt
     24java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-wiki-index.xsl $source_dir/tutorial_en.xml > $output_dir/wiki-index.txt
    2325
    2426for l in $langs; do
     
    2628    mkdir $output_dir/$l
    2729    cd $output_dir/$l
    28     java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-index.xsl $source_dir/tutorial_$l.xml > index.html
    29     java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-one-html.xsl $source_dir/tutorial_$l.xml > all_tutorials.html
    30     java -cp $shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-many-html.xsl $source_dir/tutorial_$l.xml | perl -S $GSDLHOME/gli/help/splithelpdocument.pl
     30    java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-index.xsl $source_dir/tutorial_$l.xml > index.html
     31    java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-one-html.xsl $source_dir/tutorial_$l.xml > all_tutorials.html
     32    java -DGSDLHOME=$GSDLHOME ApplyXSLT $processing_dir/xml-to-many-html.xsl $source_dir/tutorial_$l.xml | perl -S $GSDLHOME/gli/help/splithelpdocument.pl
    3133    cd $top_dir
    3234done
Note: See TracChangeset for help on using the changeset viewer.