Changeset 25767 for documentation/trunk/tutorials
- Timestamp:
- 2012-06-06T16:22:23+12:00 (12 years ago)
- Location:
- documentation/trunk/tutorials
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
documentation/trunk/tutorials/generate-html.sh
r25472 r25767 19 19 processing_dir=`pwd`/processing 20 20 output_dir=`pwd`/html 21 tmp_dir=`pwd`/tmp 21 22 22 23 export CLASSPATH=$shared_dir:$GSDLHOME/gli:$GSDLHOME/gli/classes:$GSDLHOME/perllib:$shared_dir/xalan.jar … … 26 27 fi 27 28 29 if [ ! -d $tmp_dir ]; then 30 mkdir $tmp_dir 31 fi 32 28 33 langs="en fr es ru" 29 34 … … 31 36 # is on the difference between $@ and $* and when to add quotes around them 32 37 38 # preprocess-tut-xml.xsl removes all the non-matching MajorVersion tags first 39 # This needs to be done in a separate pass, to ensure NumberedItems nested in 40 # MajorVersion tags preserve their numbering. 41 33 42 echo "processing top level index" 34 java -DGSDLHOME=$GSDLHOME ApplyXSLT "en" $processing_dir/xml-to-top-index.xsl $source_dir/tutorial_en.xml "$@" > $output_dir/index.html 43 java -DGSDLHOME=$GSDLHOME ApplyXSLT "en" $processing_dir/preprocess-tut-xml.xsl $source_dir/tutorial_en.xml "$@" > $tmp_dir/tutorial_en.xml 44 java -DGSDLHOME=$GSDLHOME ApplyXSLT "en" $processing_dir/xml-to-top-index.xsl $tmp_dir/tutorial_en.xml "$@" > $output_dir/index.html 35 45 36 46 echo "generating wiki index page" 37 java -DGSDLHOME=$GSDLHOME ApplyXSLT "en" $processing_dir/xml-to-wiki-index.xsl $ source_dir/tutorial_en.xml "$@" > $output_dir/wiki-index.txt47 java -DGSDLHOME=$GSDLHOME ApplyXSLT "en" $processing_dir/xml-to-wiki-index.xsl $tmp_dir/tutorial_en.xml "$@" > $output_dir/wiki-index.txt 38 48 39 49 for l in $langs; do … … 43 53 fi 44 54 cd $output_dir/$l 45 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-index.xsl $source_dir/tutorial_$l.xml "$@" > index.html 46 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-one-html.xsl $source_dir/tutorial_$l.xml "$@" > all_tutorials.html 47 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-many-html.xsl $source_dir/tutorial_$l.xml "$@" | perl -S $GSDLHOME/gli/help/splithelpdocument.pl 55 56 if [ "$l" != "en" ]; then 57 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/preprocess-tut-xml.xsl $source_dir/tutorial_$l.xml "$@" > $tmp_dir/tutorial_$l.xml 58 fi 59 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-index.xsl $tmp_dir/tutorial_$l.xml "$@" > index.html 60 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-one-html.xsl $tmp_dir/tutorial_$l.xml "$@" > all_tutorials.html 61 java -DGSDLHOME=$GSDLHOME ApplyXSLT $l $processing_dir/xml-to-many-html.xsl $tmp_dir/tutorial_$l.xml "$@" | perl -S $GSDLHOME/gli/help/splithelpdocument.pl 48 62 cd $top_dir 49 63 done 50 64 51 52 65 # get rid of intermediary directory 66 rm -rf $tmp_dir
Note:
See TracChangeset
for help on using the changeset viewer.