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

Revision 18111, 2.1 KB (checked in by cc108, 12 years ago)

rename some variables

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
37cd ..
38call gs3-setup.bat
39cd admin
40
41:setgsdl3
42:: Setup Greenstone3, unless it has already been done
43if "%GSDL3HOME%" == "" call "%GSDL3PATH%\gs3-setup.bat" SetEnv > nul
44set GSDL3PATH=
45
46echo gsdl3srchome: %GSDL3SRCHOME%
47echo gsdl3srchome: %GSDL3HOME%
48echo javahome: %JAVA_HOME%
49echo classpath: %CLASSPATH%
50echo.
51
52:startup
53java -cp "%CLASSPATH%" org.greenstone.admin.GAI "%GSDL3SRCHOME%" "%GSDL3HOME%"
54
55:exit
56echo.
57pause
58
59:done
60:: ---- Clean up ----
61
62
63
64
65
66
Note: See TracBrowser for help on using the browser.