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

Last change on this file since 6460 was 6450, checked in by mdewsnip, 20 years ago

Now deletes all CVS directories.

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