root/documentation/trunk/tutorials/generate-workshop.bat @ 20953

Revision 20953, 0.9 KB (checked in by davidb, 11 years ago)

ApplyXSLT now takes an extra parameter (for language). Minor tweaks to these scripts to take account of that

  • Property svn:keywords set to Author Date Id Revision
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 workshop
10
11set top_dir=%CD%
12set source_dir=%CD%\xml-source
13set processing_dir=%CD%\processing
14set output_dir=%CD%\workshop
15cd ..
16cd shared
17set shared_dir=%CD%
18cd %output_dir%
19
20echo processing workshop
21
22java -cp "%shared_dir%;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;%shared_dir%\xalan.jar" -DGSDLHOME=%GSDLHOME% ApplyXSLT "" %processing_dir%\xml-to-workshop.xsl %source_dir%\tutorial_en.xml | perl -S "%GSDLHOME%\gli\help\splithelpdocument.pl"
23java -cp %shared_dir%;%GSDLHOME%\gli;%GSDLHOME%\gli\classes;%GSDLHOME%\perllib;%shared_dir%\xalan.jar -DGSDLHOME=%GSDLHOME% ApplyXSLT "" %processing_dir%\xml-to-one-workshop.xsl %source_dir%\tutorial_en.xml > workshop.html
24cd ..
25
26
27:exit:
28
29
Note: See TracBrowser for help on using the browser.