source: trunk/gsdl3/gs3-for-distribution.bat@ 6449

Last change on this file since 6449 was 6447, checked in by mdewsnip, 20 years ago

First cut at the script for preparing Greenstone 3 for distribution. Expect changes/improvements.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.5 KB
Line 
1@echo off
2
3:: ---- Check that %GSDL3HOME% is set ----
4if not "%GSDL3HOME%" == "" goto start
5 echo You need to run gs3-setup.bat before running this file
6 goto exit
7
8:start
9cd %GSDL3HOME%\comms\jakarta\tomcat\conf
10ren server.xml server.xml.in
11"%GSDL3HOME%\winutil\sed.exe" 's,port="8080",port="@portnum@",' server.xml.in >server.xml
12
13cd %GSDL3HOME%\web\WEB-INF
14ren web.xml.in web.xml
15
16cd %GSDL3HOME%\web\sites
17cd localsite
18"%GSDL3HOME%\winutil\sed.exe" 's,localhost,@computername@,g' siteConfig.xml >siteConfig.xml.tmp
19"%GSDL3HOME%\winutil\sed.exe" 's,8080,@portnum@,g' siteConfig.xml.tmp >siteConfig.xml
20del siteConfig.xml.tmp
21cd ..
22
23cd soapsite
24"%GSDL3HOME%\winutil\sed.exe" 's,localhost,@computername@,g' siteConfig.xml >siteConfig.xml.tmp
25"%GSDL3HOME%\winutil\sed.exe" 's,8080,@portnum@,g' siteConfig.xml.tmp >siteConfig.xml
26del siteConfig.xml.tmp
27cd ..
28
29cd %GSDL3HOME%
30del lib\java\gate.jar >nul 2>&1
31del src\java\org\greenstone\gsdl3\service\GATEServices.java >nul 2>&1
32
33cd %GSDL3HOME%\web\sites\localsite
34ren collect collect.tmp
35mkdir collect
36move collect.tmp\chinesedemo collect
37move collect.tmp\demo collect
38move collect.tmp\gberg collect
39move collect.tmp\infomine collect
40move collect.tmp\mgppdemo collect
41move collect.tmp\nzmaps collect
42rmdir /S /Q collect.tmp
43
44cd %GSDL3HOME%
45mkdir tmp
46copy README.txt tmp
47copy LICENSE.txt tmp
48copy gs3-setup.bat tmp
49copy gs3-launch.bat tmp
50attrib +R gs3-for-distribution.bat
51del /Q *.* >nul 2>&1
52attrib -R gs3-for-distribution.bat
53move tmp\*.* .
54rmdir tmp
55
56:exit
Note: See TracBrowser for help on using the repository browser.