[17912] | 1 | @echo off
|
---|
| 2 | set GAILANG=en
|
---|
| 3 |
|
---|
| 4 | set PROGNAME=Greenstone Administrator Interface
|
---|
| 5 | set PROGABBR=GAI
|
---|
| 6 |
|
---|
| 7 | echo.
|
---|
| 8 | if "%GLILANG%" == "en" echo %PROGNAME% (%PROGABBR%)
|
---|
| 9 | if "%GLILANG%" == "en" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
|
---|
| 10 | if "%GLILANG%" == "en" echo %PROGABBR% comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
|
---|
| 11 | if "%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
|
---|
| 16 | if 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 excut
|
---|
| 21 | partir du rpertoire dans lequel il se trouve.
|
---|
| 22 | if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ® à ᯮ«®Š¥
|
---|
| 23 | goto exit
|
---|
| 24 |
|
---|
| 25 |
|
---|
| 26 | :: ---- Determine GSDL3HOME ----
|
---|
| 27 | :setvars
|
---|
| 28 | set GSDL3PATH=
|
---|
| 29 |
|
---|
| 30 | :: Some users may set the above line manually, or it may be set as an argument
|
---|
| 31 | if not "%GSDL3PATH%" == "" goto setgsdl3
|
---|
| 32 | :: Check the environment variable first
|
---|
| 33 | if not "%GSDL3SRCHOME%" == "" set GSDL3PATH=%GSDL3SRCHOME%
|
---|
| 34 | if not "%GSDL3SRCHOME%" == "" goto setgsdl3
|
---|
| 35 | echo **** I am HERE
|
---|
| 36 | if "%GSDL3SRCHOME%" == "" set GSDL3PATH="%CD%"
|
---|
| 37 |
|
---|
| 38 | :setgsdl3
|
---|
| 39 | :: Setup Greenstone3, unless it has already been done
|
---|
| 40 | if "%GSDL3HOME%" == "" call "%GSDL3PATH%\gs3-setup.bat" SetEnv > nul
|
---|
| 41 | set GSDL3PATH=
|
---|
| 42 |
|
---|
| 43 | echo gsdl3srchome: %GSDL3SRCHOME%
|
---|
| 44 | echo gsdl3srchome: %GSDL3HOME%
|
---|
| 45 | echo javahome: %JAVA_HOME%
|
---|
| 46 | echo classpath: %CLASSPATH%
|
---|
| 47 | echo.
|
---|
| 48 |
|
---|
| 49 | :startup
|
---|
| 50 | java -cp "%CLASSPATH%" org.greenstone.admin.GAI %GSDL3SRCHOME% %GSDL3HOME%
|
---|
| 51 |
|
---|
| 52 | :exit
|
---|
| 53 | echo.
|
---|
| 54 | pause
|
---|
| 55 |
|
---|
| 56 | :done
|
---|
| 57 | :: ---- Clean up ----
|
---|
| 58 |
|
---|
| 59 |
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 |
|
---|
| 63 |
|
---|