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

Last change on this file since 6489 was 6466, checked in by mdewsnip, 20 years ago

Now edits computer name and port number in gs3-launch.bat.

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 1.9 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
46move collect.tmp\nzmaps collect
47rmdir /S /Q collect.tmp
48
49cd %GSDL3HOME%
50dir /B /S | find "\CVS" | find /V "\CVS\" | "%GSDL3HOME%\winutil\sed.exe" 's,^\(.\),@rmdir /S /Q \1,' >delcvs.bat
51call delcvs.bat
52del delcvs.bat
53
54cd %GSDL3HOME%
55mkdir tmp
56copy README.txt tmp
57copy LICENSE.txt tmp
58copy gs3-setup.bat tmp
59copy gs3-launch.bat tmp
60attrib +R gs3-for-distribution.bat
61del /Q *.* >nul 2>&1
62attrib -R gs3-for-distribution.bat
63move tmp\*.* .
64rmdir tmp
65
66:exit
Note: See TracBrowser for help on using the repository browser.