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

Last change on this file since 7355 was 6587, checked in by kjdon, 20 years ago

removed nzmaps from the distro

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.8 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%
30"%GSDL3HOME%\winutil\sed.exe" 's,localhost,@computername@,g' gs3-launch.bat >gs3-launch.bat.tmp
31"%GSDL3HOME%\winutil\sed.exe" 's,8080,@portnum@,g' gs3-launch.bat.tmp >gs3-launch.bat
32del gs3-launch.bat.tmp
33
34call make.bat clean
35del lib\java\gate.jar >nul 2>&1
36del src\java\org\greenstone\gsdl3\service\GATEServices.java >nul 2>&1
37
38cd %GSDL3HOME%\web\sites\localsite
39ren collect collect.tmp
40mkdir collect
41move collect.tmp\chinesedemo collect
42move collect.tmp\demo collect
43move collect.tmp\gberg collect
44move collect.tmp\infomine collect
45move collect.tmp\mgppdemo collect
46rmdir /S /Q collect.tmp
47
48cd %GSDL3HOME%
49dir /B /S | find "\CVS" | find /V "\CVS\" | "%GSDL3HOME%\winutil\sed.exe" 's,^\(.\),@rmdir /S /Q \1,' >delcvs.bat
50call delcvs.bat
51del delcvs.bat
52
53cd %GSDL3HOME%
54mkdir tmp
55copy README.txt tmp
56copy LICENSE.txt tmp
57copy gs3-setup.bat tmp
58copy gs3-launch.bat tmp
59attrib +R gs3-for-distribution.bat
60del /Q *.* >nul 2>&1
61attrib -R gs3-for-distribution.bat
62move tmp\*.* .
63rmdir tmp
64
65:exit
Note: See TracBrowser for help on using the repository browser.