[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"
|
---|
| 28 |
|
---|
[17495] | 29 | 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"
|
---|
| 30 |
|
---|
[13636] | 31 | echo "generating wiki index page"
|
---|
[17495] | 32 | 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] | 33 |
|
---|
| 34 | echo "procesing english version"
|
---|
| 35 |
|
---|
[13743] | 36 | cd %output_dir%\en
|
---|
[17495] | 37 | 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"
|
---|
| 38 | 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"
|
---|
| 39 | 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] | 40 | cd ..
|
---|
| 41 |
|
---|
| 42 | echo "procesing french version"
|
---|
[13743] | 43 | cd %output_dir%\fr
|
---|
[17495] | 44 | 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
|
---|
| 45 | 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
|
---|
| 46 | 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] | 47 | cd ..
|
---|
| 48 |
|
---|
| 49 | echo "procesing spanish version"
|
---|
[13743] | 50 | cd %output_dir%\es
|
---|
[17495] | 51 | 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
|
---|
| 52 | 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
|
---|
| 53 | 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] | 54 | cd ..
|
---|
| 55 |
|
---|
| 56 | echo "procesing russian version"
|
---|
[13743] | 57 | cd %output_dir%\ru
|
---|
[17495] | 58 | 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
|
---|
| 59 | 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
|
---|
| 60 | 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] | 61 |
|
---|
| 62 | cd ..
|
---|
| 63 |
|
---|
| 64 | :exit:
|
---|
| 65 |
|
---|
| 66 |
|
---|