[13636] | 1 | @echo off
|
---|
| 2 |
|
---|
| 3 | if not "%GSDLHOME%" == "" goto generate
|
---|
| 4 |
|
---|
| 5 | echo You must run 'setup' in the top level folder of your Greenstone installation before running this script
|
---|
| 6 | goto exit
|
---|
| 7 |
|
---|
| 8 | :generate:
|
---|
[13743] | 9 | mkdir html
|
---|
| 10 | cd html
|
---|
| 11 | :generate:
|
---|
[13636] | 12 | mkdir en
|
---|
| 13 | mkdir fr
|
---|
| 14 | mkdir ru
|
---|
| 15 | mkdir es
|
---|
[13743] | 16 | cd ..
|
---|
[13636] | 17 |
|
---|
[13743] | 18 | set top_dir=%CD%
|
---|
| 19 | set source_dir=%CD%\xml-source
|
---|
| 20 | set processing_dir=%CD%\processing
|
---|
| 21 | set output_dir=%CD%\html
|
---|
| 22 | cd ..
|
---|
| 23 | cd shared
|
---|
| 24 | set shared_dir=%CD%
|
---|
| 25 | cd %output_dir%
|
---|
| 26 |
|
---|
[13636] | 27 | echo "processing top level index"
|
---|
[13743] | 28 | 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
|
---|
[13636] | 29 |
|
---|
| 30 | echo "generating wiki index page"
|
---|
[13743] | 31 | 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
|
---|
[13636] | 32 |
|
---|
| 33 | echo "procesing english version"
|
---|
| 34 |
|
---|
[13743] | 35 | cd %output_dir%\en
|
---|
| 36 | 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_en.xml > index.html
|
---|
| 37 | 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_en.xml > all_tutorials.html
|
---|
| 38 | 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_en.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
|
---|
[13636] | 39 | cd ..
|
---|
| 40 |
|
---|
| 41 | echo "procesing french version"
|
---|
[13743] | 42 | cd %output_dir%\fr
|
---|
| 43 | 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_fr.xml > index.html
|
---|
| 44 | 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_fr.xml > all_tutorials.html
|
---|
| 45 | 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_fr.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
|
---|
[13636] | 46 | cd ..
|
---|
| 47 |
|
---|
| 48 | echo "procesing spanish version"
|
---|
[13743] | 49 | cd %output_dir%\es
|
---|
| 50 | 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_es.xml > index.html
|
---|
| 51 | 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_es.xml > all_tutorials.html
|
---|
| 52 | 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_es.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
|
---|
[13636] | 53 | cd ..
|
---|
| 54 |
|
---|
| 55 | echo "procesing russian version"
|
---|
[13743] | 56 | cd %output_dir%\ru
|
---|
| 57 | 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_ru.xml > index.html
|
---|
| 58 | 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_ru.xml > all_tutorials.html
|
---|
| 59 | 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_ru.xml | perl -S %GSDLHOME%\gli\help\splithelpdocument.pl
|
---|
[13636] | 60 |
|
---|
| 61 | cd ..
|
---|
| 62 |
|
---|
| 63 | :exit:
|
---|
| 64 |
|
---|
| 65 |
|
---|