source: documentation/trunk/tutorials/generate-workshop.bat@ 14835

Last change on this file since 14835 was 13744, checked in by qq6, 14 years ago

Change the file paths, but index.html didn't be split into several html files

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 882 bytes
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 repository browser.