source: trunk/gsdl-documentation/tutorials/generate-html.bat@ 13636

Last change on this file since 13636 was 13636, checked in by kjdon, 15 years ago

shell scripts for generating tutorial html. these need updating for teh new repository structure

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 2.9 KB
Line 
1@echo off
2
3if not "%GSDLHOME%" == "" goto generate
4
5echo You must run 'setup' in the top level folder of your Greenstone installation before running this script
6goto exit
7
8:generate:
9mkdir en
10mkdir fr
11mkdir ru
12mkdir es
13
14echo "processing top level index"
15java -cp .;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT xml-to-top-index.xsl tutorial_en.xml > index.html
16
17echo "generating wiki index page"
18java -cp .;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT xml-to-wiki-index.xsl tutorial_en.xml > wiki-index.txt
19
20echo "procesing english version"
21
22cd en
23java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-index.xsl ..\tutorial_en.xml > index.html
24java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-one-html.xsl ..\tutorial_en.xml > all_tutorials.html
25java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-many-html.xsl ..\tutorial_en.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
26cd ..
27
28echo "procesing french version"
29cd fr
30java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-index.xsl ..\tutorial_fr.xml > index.html
31java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-one-html.xsl ..\tutorial_fr.xml > all_tutorials.html
32java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-many-html.xsl ..\tutorial_fr.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
33cd ..
34
35echo "procesing spanish version"
36cd es
37java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-index.xsl ..\tutorial_es.xml > index.html
38java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-one-html.xsl ..\tutorial_es.xml > all_tutorials.html
39java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-many-html.xsl ..\tutorial_es.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
40cd ..
41
42echo "procesing russian version"
43cd ru
44java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-index.xsl ..\tutorial_ru.xml > index.html
45java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-one-html.xsl ..\tutorial_ru.xml > all_tutorials.html
46java -cp ..;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;..\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT ..\xml-to-many-html.xsl ..\tutorial_ru.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
47
48cd ..
49
50:exit:
51
52
Note: See TracBrowser for help on using the repository browser.