root/greenstone3/trunk/admin/gs3-admin.bat @ 18109

Revision 18109, 2.0 KB (checked in by cc108, 12 years ago)

1. Moved gs3-admin scripts from toplevel greenstone3 folder into new folder admin. 2. gs3-admin.bat has also been updated now.

Line 
1@echo off
2set GAILANG=en
3
4set PROGNAME=Greenstone Administrator Interface
5set PROGABBR=GAI
6
7echo.
8if "%GLILANG%" == "en" echo %PROGNAME% (%PROGABBR%)
9if "%GLILANG%" == "en" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
10if "%GLILANG%" == "en" echo %PROGABBR% comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
11if "%GLILANG%" == "en" echo This is free software, and you are welcome to redistribute it
12
13::  -------- Run the Greenstone Administrator Interface --------
14
15::  This script must be run from within the directory in which it lives
16if exist gs3-admin.bat goto setvars
17    if "%GAILANG%" == "en" echo This script must be run from the directory in which it resides.
18    if "%GAILANG%" == "es" echo Este gui¢n deber  ejecutarse desde el directorio en el que reside.
19    if "%GLILANG%" == "es" echo Este gui¢n deber  ejecutarse desde el directorio en el que reside.
20    if "%GLILANG%" == "fr" echo Ce script doit ˆtre ex‚cut‚ … partir du r‚pertoire dans lequel il se trouve.
21    if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥­ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ®­ à á¯®«®Š¥­
22    goto exit
23
24
25::  ---- Determine GSDL3HOME ----
26:setvars
27set GSDL3PATH=
28
29:: Some users may set the above line manually, or it may be set as an argument
30if not "%GSDL3PATH%" == "" goto setgsdl3
31    :: Check the environment variable first
32    if not "%GSDL3SRCHOME%" == "" set GSDL3PATH=%GSDL3SRCHOME%
33    if not "%GSDL3SRCHOME%" == "" goto setgsdl3
34        echo **** I am HERE
35        if "%GSDL3SRCHOME%" == "" set GSDL3PATH="%CD%"
36
37:setgsdl3
38:: Setup Greenstone3, unless it has already been done
39if "%GSDL3HOME%" == "" call "%GSDL3PATH%\gs3-setup.bat" SetEnv > nul
40set GSDL3PATH=
41
42echo gsdl3srchome: %GSDL3SRCHOME%
43echo gsdl3srchome: %GSDL3HOME%
44echo javahome: %JAVA_HOME%
45echo classpath: %CLASSPATH%
46echo.
47
48:startup
49java -cp "%CLASSPATH%" org.greenstone.admin.GAI %GSDL3SRCHOME% %GSDL3HOME%
50
51:exit
52echo.
53pause
54
55:done
56:: ---- Clean up ----
57
58
59
60
61
62
Note: See TracBrowser for help on using the browser.