source: trunk/gsdl3/bin/script/gs3-build.bat@ 7898

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

haven't tested this :-)

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 700 bytes
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
9
10if not "%1" == "" goto start2
11 echo Usage: gs3-build sitename collname
12 goto exit
13
14:start2
15if not "%2" == "" goto run
16 echo Usage: gs3-build sitename collname
17 goto exit
18
19:run
20
21:: first we need to drop the database if it exists
22echo trying to drop the database
23%GSDL3HOME%\packages\mysql\bin\mysql --user=root --execute="drop database %1_%2;"
24java -cp %CLASSPATH% -DGSDL3HOME=%GSDL3HOME% -Dorg.xml.sax.driver=org.apache.xerces.parsers.SAXParser org.greenstone.gsdl3.gs3build.Build -site %1 -collect %2
25
26:exit
Note: See TracBrowser for help on using the repository browser.