[8008] | 1 | @echo off
|
---|
| 2 | set GLILANG=en
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | :: -------- Run the Greenstone Librarian Interface --------
|
---|
| 6 |
|
---|
| 7 | :: This script must be run from within the directory in which it lives
|
---|
| 8 | if exist gli4gs3.bat goto start
|
---|
| 9 | if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides.
|
---|
| 10 | if "%GLILANG%" == "es" echo Este gui¢n deber ejecutarse desde el directorio en el que reside.
|
---|
| 11 | if "%GLILANG%" == "fr" echo Ce script doit tre excut
|
---|
| 12 | partir du rpertoire dans lequel il se trouve.
|
---|
| 13 | if "%GLILANG%" == "ru" echo â®â áªàš¯â €®«Š¥ ¡ëâì ¢§ïâ š§ €šà¥ªâ®àšš, ¢ ª®â®à®© ® à ᯮ«®Š¥
|
---|
| 14 | goto exit
|
---|
| 15 |
|
---|
[8064] | 16 | :start
|
---|
[8008] | 17 | if "%OS%" == "Windows_NT" goto findGSDL3
|
---|
[8064] | 18 | :: Invoke a new command processor to ensure there's enough environment space
|
---|
[8008] | 19 | if "%1" == "Second" goto findGSDL3
|
---|
| 20 | command /E:2048 /C %0 Second %1 %2 %3 %4 %5 %6 %7 %8 %9
|
---|
| 21 | goto done
|
---|
[8064] | 22 |
|
---|
[8008] | 23 | :findGSDL3
|
---|
| 24 | echo.
|
---|
[9656] | 25 | if "%GLILANG%" == "en" echo Greenstone Librarian Interface (GLI)
|
---|
[8008] | 26 | if "%GLILANG%" == "en" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
|
---|
| 27 | if "%GLILANG%" == "en" echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt
|
---|
| 28 | if "%GLILANG%" == "en" echo This is free software, and you are welcome to redistribute it
|
---|
| 29 |
|
---|
[9656] | 30 | if "%GLILANG%" == "es" echo Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)
|
---|
[8008] | 31 | if "%GLILANG%" == "es" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
|
---|
| 32 | if "%GLILANG%" == "es" echo La Interfaz de la Biblioteca Digital Greenstone NO INCLUYE ABSOLUTAMENTE NINGUNA GARANTÖA.
|
---|
| 33 | if "%GLILANG%" == "es" echo Para mayor informaci¢n vea los trminos de la licencia en LICENSE.txt
|
---|
| 34 | if "%GLILANG%" == "es" echo Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita
|
---|
| 35 |
|
---|
[9656] | 36 | if "%GLILANG%" == "fr" echo Interface du Bibliothcaire Greenstone (Greenstone Librarian Interface - GLI)
|
---|
[8008] | 37 | if "%GLILANG%" == "fr" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
|
---|
| 38 | if "%GLILANG%" == "fr" echo GLI est fourni sans AUCUNE GARANTIE; pour des dtails, voir LICENSE.txt
|
---|
| 39 | if "%GLILANG%" == "fr" echo Ceci est un logiciel libre, et vous tes invit
|
---|
| 40 | le redistribuer
|
---|
[9656] | 41 |
|
---|
[8008] | 42 | if "%GLILANG%" == "ru" echo š¡«š®â¥çë© šâ¥à䥩á Greenstone (Greenstone Librarian Interface - GLI)
|
---|
| 43 | if "%GLILANG%" == "ru" echo Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato
|
---|
| 44 | if "%GLILANG%" == "ru" echo ¥ € ¥â ; €¥â «š á¬. ¢ ⥪á⥠LICENSE.TXT
|
---|
| 45 | if "%GLILANG%" == "ru" echo â® - ᢮¡®€® à á¯à®áâà 塞®¥ ¯à®£à ¬¬®¥ ®¡¥á¯¥ç¥š¥ š ë ¬®Š¥â¥ à á¯à®áâà ïâì ¥£®
|
---|
[8064] | 46 |
|
---|
[9891] | 47 | echo.
|
---|
[8008] | 48 | :: ---- Determine GSDL3HOME ----
|
---|
[9891] | 49 | set GSDL3PATH=%GSDL3PATH%
|
---|
[8064] | 50 |
|
---|
[8008] | 51 | :: Some users may set the above line manually, or it may be set as an argument
|
---|
[8064] | 52 | if not "%GSDL3PATH%" == "" goto testGSDL3
|
---|
[8008] | 53 |
|
---|
| 54 | :: The default location for the GLI is a subdirectory of Greenstone 3
|
---|
[8064] | 55 | set GSDL3PATH=..
|
---|
[10333] | 56 |
|
---|
| 57 | :: If it is set, use the GSDL3HOME environment variable
|
---|
[8008] | 58 | if "%GSDL3SRCHOME%" == "" goto testGSDL3
|
---|
[8064] | 59 | set GSDL3PATH=%GSDL3SRCHOME%
|
---|
| 60 |
|
---|
[8008] | 61 | :testGSDL3
|
---|
| 62 | :: Check that the Greenstone 3 installation looks OK
|
---|
| 63 | if "%GLILANG%" == "en" echo Checking GSDL3: %GSDL3PATH%
|
---|
| 64 | if "%GLILANG%" == "es" echo Revisando GSDL3: %GSDL3PATH%
|
---|
[8064] | 65 | if "%GLILANG%" == "fr" echo Vrification de GSDL3: %GSDL3PATH%
|
---|
[8008] | 66 | if "%GLILANG%" == "ru" echo ஢¥àª GSDL3: %GSDL3PATH%
|
---|
[8064] | 67 | if exist "%GSDL3PATH%\gs3-setup.bat" goto prepGSDL3
|
---|
| 68 | echo.
|
---|
| 69 | if "%GLILANG%" == "en" echo The Greenstone 3 installation could not be found, or is incomplete.
|
---|
| 70 | if "%GLILANG%" == "en" echo Try reinstalling Greenstone 3 then running this script again.
|
---|
| 71 |
|
---|
| 72 | if "%GLILANG%" == "es" echo No se pudo encontrar la instalaci¢n de Greenstone 3 o est incompleta.
|
---|
| 73 | if "%GLILANG%" == "es" echo Trate de reinstalar Greenstone 3 y a continuaci¢n ejecute nuevamente este gui¢n.
|
---|
| 74 |
|
---|
| 75 | if "%GLILANG%" == "fr" echo L'installation de Greenstone 3 est introuvable ou incomplte. Essayez
|
---|
| 76 | if "%GLILANG%" == "fr" echo de rinstaller Greenstone 3 et excutez ce script
|
---|
| 77 | nouveau.
|
---|
| 78 |
|
---|
| 79 | if "%GLILANG%" == "ru" echo áâ ««ïæšï Greenstone 3 ¥ ¡ë« ©€¥ š«š ® ¥¯®« . ®¯à®¡ã©â¥ ¯®¢â®à®
|
---|
| 80 | if "%GLILANG%" == "ru" echo ãáâ ®¢šâì Greenstone, 3 § ⥬ ¢¢¥áâš íâ®â áªàš¯â ᮢ .
|
---|
| 81 | goto exit
|
---|
[10333] | 82 |
|
---|
[8064] | 83 | :prepGSDL3
|
---|
| 84 | :: Setup Greenstone 3, unless it has already been done
|
---|
| 85 | if not "%GSDL3SRCHOME%" == "" goto doneGSDL3
|
---|
| 86 | cd | winutil\setvar.exe GLIDIR > setgli.bat
|
---|
| 87 | call setgli.bat
|
---|
| 88 | del setgli.bat
|
---|
| 89 | cd "%GSDL3PATH%"
|
---|
| 90 | call gs3-setup.bat SetEnv > nul
|
---|
| 91 | cd %GLIDIR%
|
---|
| 92 |
|
---|
| 93 | :doneGSDL3
|
---|
| 94 | :: GSDL3PATH is no longer needed, since GSDL3HOME should now be set
|
---|
| 95 | set GSDL3PATH=
|
---|
[9891] | 96 |
|
---|
[8064] | 97 |
|
---|
[9891] | 98 | :: ---- Determine GSDLHOME ----
|
---|
[8064] | 99 | set GSDLPATH=%GSDLPATH%
|
---|
| 100 |
|
---|
[9383] | 101 | :: Some users may set the above line manually, or it may be set in the environment
|
---|
[10333] | 102 | if not "%GSDLPATH%" == "" goto testGSDL
|
---|
[8064] | 103 |
|
---|
| 104 | :: The default location for Greenstone is a gs2build subdirectory of Greenstone 3
|
---|
| 105 | set GSDLPATH=%GSDL3SRCHOME%\gs2build
|
---|
| 106 |
|
---|
| 107 | :: If it is set, use the GSDLHOME environment variable
|
---|
| 108 | if "%GSDLHOME%" == "" goto testGSDL
|
---|
| 109 | set GSDLPATH=%GSDLHOME%
|
---|
| 110 |
|
---|
| 111 | :testGSDL
|
---|
| 112 | :: Check that the Greenstone installation looks OK
|
---|
| 113 | if "%GLILANG%" == "en" echo Checking GSDL: %GSDLPATH%
|
---|
| 114 | if "%GLILANG%" == "es" echo Revisando GSDL: %GSDLPATH%
|
---|
| 115 | if "%GLILANG%" == "fr" echo Vrification de GSDL: %GSDLPATH%
|
---|
[8008] | 116 | if "%GLILANG%" == "ru" echo ஢¥àª GSDL: %GSDLPATH%
|
---|
| 117 | if exist "%GSDLPATH%\setup.bat" goto prepGSDL
|
---|
| 118 | echo.
|
---|
| 119 | if "%GLILANG%" == "en" echo The Greenstone installation could not be found, or is incomplete.
|
---|
| 120 | if "%GLILANG%" == "en" echo Try reinstalling Greenstone then running this script again.
|
---|
| 121 |
|
---|
| 122 | if "%GLILANG%" == "es" echo No se pudo encontrar la instalaci¢n de Greenstone o est incompleta.
|
---|
| 123 | if "%GLILANG%" == "es" echo Trate de reinstalar Greenstone y a continuaci¢n ejecute nuevamente este gui¢n.
|
---|
| 124 |
|
---|
| 125 | if "%GLILANG%" == "fr" echo L'installation de Greenstone est introuvable ou incomplte. Essayez
|
---|
| 126 | if "%GLILANG%" == "fr" echo de rinstaller Greenstone et excutez ce script
|
---|
| 127 | nouveau.
|
---|
| 128 |
|
---|
| 129 | if "%GLILANG%" == "ru" echo áâ ««ïæšï Greenstone ¥ ¡ë« ©€¥ š«š ® ¥¯®« . ®¯à®¡ã©â¥ ¯®¢â®à®
|
---|
| 130 | if "%GLILANG%" == "ru" echo ãáâ ®¢šâì Greenstone, § ⥬ ¢¢¥áâš íâ®â áªàš¯â ᮢ .
|
---|
[8064] | 131 | goto exit
|
---|
| 132 |
|
---|
[8008] | 133 | :prepGSDL
|
---|
| 134 | :: Setup Greenstone, unless it has already been done
|
---|
[8064] | 135 | if not "%GSDLHOME%" == "" goto doneGSDL
|
---|
| 136 | call "%GSDLPATH%\setup.bat" SetEnv > nul
|
---|
[8008] | 137 |
|
---|
| 138 | :doneGSDL
|
---|
| 139 | :: GSDLPATH is no longer needed, since GSDLHOME should now be set
|
---|
| 140 | set GSDLPATH=
|
---|
| 141 |
|
---|
| 142 |
|
---|
| 143 | :findPerl
|
---|
| 144 | :: ---- Check Perl exists ----
|
---|
| 145 | set PERLPATH=
|
---|
| 146 |
|
---|
| 147 | :: Some users may set the above line manually
|
---|
| 148 | if not "%PERLPATH%" == "" goto testPerl
|
---|
| 149 |
|
---|
| 150 | :: Check if Perl is on the search path
|
---|
| 151 | echo %PATH%| winutil\which.exe perl.exe | winutil\setvar.exe PERLPATH > setperl.bat
|
---|
| 152 | call setperl.bat
|
---|
| 153 | del setperl.bat
|
---|
| 154 | if not "%PERLPATH%" == "" goto testPerl
|
---|
| 155 |
|
---|
| 156 | :: If not, try GSDLHOME\bin\windows\perl\bin
|
---|
| 157 | if exist "%GSDLHOME%\bin\windows\perl\bin\perl.exe" goto gsdlPerl
|
---|
| 158 |
|
---|
| 159 | :: Still haven't found anything, so try looking in the registry (gulp!)
|
---|
| 160 | type nul > perl.reg
|
---|
| 161 | regedit /E perl.reg "HKEY_LOCAL_MACHINE\SOFTWARE\Perl"
|
---|
| 162 | type perl.reg > perl.txt
|
---|
| 163 | del perl.reg
|
---|
| 164 |
|
---|
| 165 | winutil\findperl.exe perl.txt | winutil\setvar.exe PERLPATH > setperl.bat
|
---|
| 166 | del perl.txt
|
---|
| 167 | call setperl.bat
|
---|
| 168 | del setperl.bat
|
---|
| 169 |
|
---|
| 170 | :: If nothing was found in the registry, we're stuck
|
---|
| 171 | if "%PERLPATH%" == "" goto noPerl
|
---|
| 172 |
|
---|
| 173 | goto testPerl
|
---|
| 174 |
|
---|
| 175 | :gsdlPerl
|
---|
| 176 | set PERLPATH=%GSDLHOME%\bin\windows\perl\bin
|
---|
| 177 |
|
---|
| 178 | :testPerl
|
---|
| 179 | :: Check that a Perl executable has been found
|
---|
| 180 | if "%GLILANG%" == "en" echo Checking Perl: %PERLPATH%
|
---|
| 181 | if "%GLILANG%" == "es" echo Revisando Perl: %PERLPATH%
|
---|
| 182 | if "%GLILANG%" == "fr" echo Vrification de Perl: %PERLPATH%
|
---|
| 183 | if "%GLILANG%" == "ru" echo ஢¥àª Perl: %PERLPATH%
|
---|
| 184 | if exist "%PERLPATH%\perl.exe" goto findJava
|
---|
| 185 |
|
---|
| 186 | :noPerl
|
---|
| 187 | echo.
|
---|
| 188 | if "%GLILANG%" == "en" echo The Greenstone Librarian Interface requires perl in order to operate,
|
---|
| 189 | if "%GLILANG%" == "en" echo but perl could not be detected on your system. Please ensure that perl
|
---|
| 190 | if "%GLILANG%" == "en" echo is installed and is on your search path, then rerun this script.
|
---|
| 191 |
|
---|
| 192 | if "%GLILANG%" == "es" echo La Interfaz de la Biblioteca Digital Greenstone requiere Perl para poder
|
---|
| 193 | if "%GLILANG%" == "es" echo operar, pero ste no aparece en su sistema. Por favor aseg£rese de
|
---|
| 194 | if "%GLILANG%" == "es" echo que Perl est instalado y se encuentra en su ruta de b£squeda.
|
---|
| 195 | if "%GLILANG%" == "es" echo A continuaci¢n ejecute nuevamente este gui¢n.
|
---|
| 196 |
|
---|
| 197 | if "%GLILANG%" == "fr" echo Greenstone Librarian Interface ncessite perl pour son fonctionnement,
|
---|
| 198 | if "%GLILANG%" == "fr" echo mais perl n'a pas pu tre dtect dans votre systme. Veuillez vous
|
---|
| 199 | if "%GLILANG%" == "fr" echo assurer que perl est install et est spcifi dans votre chemin de
|
---|
| 200 | if "%GLILANG%" == "fr" echo recherche, puis redmarrez ce script.
|
---|
| 201 |
|
---|
| 202 | if "%GLILANG%" == "ru" echo š¡«š®â¥çë© šâ¥à䥩á Greenstone âॡã¥â Perl, çâ®¡ë š¬¥âì ¢®§¬®Š®áâì
|
---|
| 203 | if "%GLILANG%" == "ru" echo à ¡®â âì, ® Perl ¥ ¡ë« ¢ ¢ 襩 ášá⥬¥. ®Š «ã©áâ , ¯®€â¢¥à€šâ¥,
|
---|
| 204 | if "%GLILANG%" == "ru" echo çâ® Perl ãáâ ®¢«¥ š 宀šâáï ¢ 襬 ¯ãâš ¯®šáª , § ⥬
|
---|
| 205 | if "%GLILANG%" == "ru" echo ¯®¢â®à®¢¢¥€šâ¥ íâ®â áªàš¯â.
|
---|
| 206 | goto exit
|
---|
| 207 |
|
---|
| 208 |
|
---|
| 209 | :findJava
|
---|
| 210 | :: ---- Check Java exists ----
|
---|
| 211 | set JAVAPATH=
|
---|
| 212 |
|
---|
| 213 | :: Some users may set the above line manually
|
---|
| 214 | if not "%JAVAPATH%" == "" goto testJava
|
---|
| 215 |
|
---|
| 216 | :: If it is set, use the JAVA_HOME environment variable
|
---|
| 217 | if not "%JAVA_HOME%" == "" goto javahome
|
---|
| 218 |
|
---|
| 219 | :: Check if Java is on the search path
|
---|
| 220 | echo %PATH%| winutil\which.exe java.exe | winutil\setvar.exe JAVAPATH > setjava.bat
|
---|
| 221 | call setjava.bat
|
---|
| 222 | del setjava.bat
|
---|
| 223 | if not "%JAVAPATH%" == "" goto testJava
|
---|
| 224 |
|
---|
| 225 | :: Still haven't found anything, so try looking in the registry (gulp!)
|
---|
| 226 | type nul > jdk.reg
|
---|
| 227 | regedit /E jdk.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Development Kit"
|
---|
| 228 | type jdk.reg > jdk.txt
|
---|
| 229 | del jdk.reg
|
---|
| 230 | type nul > jre.reg
|
---|
| 231 | regedit /E jre.reg "HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Runtime Environment"
|
---|
| 232 | type jre.reg > jre.txt
|
---|
| 233 | del jre.reg
|
---|
| 234 |
|
---|
| 235 | winutil\findjava.exe jdk.txt jre.txt | winutil\setvar.exe JAVAPATH > setjava.bat
|
---|
| 236 | del jdk.txt
|
---|
| 237 | del jre.txt
|
---|
| 238 | call setjava.bat
|
---|
| 239 | del setjava.bat
|
---|
| 240 |
|
---|
| 241 | :: If nothing was found in the registry, we're stuck
|
---|
| 242 | if "%JAVAPATH%" == "" goto noJava
|
---|
| 243 |
|
---|
| 244 | set JAVAPATH=%JAVAPATH%\bin
|
---|
| 245 | goto testJava
|
---|
| 246 |
|
---|
| 247 | :javahome
|
---|
| 248 | set JAVAPATH=%JAVA_HOME%\bin
|
---|
| 249 |
|
---|
| 250 | :testJava
|
---|
| 251 | :: Check that a Java executable has been found
|
---|
| 252 | if "%GLILANG%" == "en" echo Checking Java: %JAVAPATH%
|
---|
| 253 | if "%GLILANG%" == "es" echo Revisando Java: %JAVAPATH%
|
---|
| 254 | if "%GLILANG%" == "fr" echo Vrification de Java: %JAVAPATH%
|
---|
| 255 | if "%GLILANG%" == "ru" echo ஢¥àª Java: %JAVAPATH%
|
---|
| 256 | if exist "%JAVAPATH%\java.exe" goto checkGLI
|
---|
| 257 |
|
---|
| 258 | :noJava
|
---|
| 259 | echo.
|
---|
| 260 | if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Java. You must install a
|
---|
| 261 | if "%GLILANG%" == "en" echo Java Runtime Environment (version 1.4 or greater) before running the
|
---|
| 262 | if "%GLILANG%" == "en" echo Greenstone Librarian Interface.
|
---|
| 263 |
|
---|
| 264 | if "%GLILANG%" == "es" echo No se pudo localizar una versi¢n apropiada de Java. Usted deber
|
---|
| 265 | if "%GLILANG%" == "es" echo instalar un Ambiente de Ejecuci¢n Java (versi¢n 1.4 o superior)
|
---|
| 266 | if "%GLILANG%" == "es" echo antes de correr la Interfaz de la Biblioteca Digital Greenstone.
|
---|
| 267 |
|
---|
| 268 | if "%GLILANG%" == "fr" echo Une version adquate de Java n'a pas pu tre localise. Vous devez
|
---|
| 269 | if "%GLILANG%" == "fr" echo installer un Java Runtime Environment (version 1.4 ou suprieur)
|
---|
| 270 | if "%GLILANG%" == "fr" echo avant de dmarrer Greenstone Librarian Interface.
|
---|
| 271 |
|
---|
| 272 | if "%GLILANG%" == "ru" echo ¥ 〠«®áì ®¯à¥€¥«šâì ¬¥á⮠宊€¥š¥ ᮮ⢥âáâ¢ãî饩 ¢¥àášš Java.
|
---|
| 273 | if "%GLILANG%" == "ru" echo ë €®«Šë ãáâ ®¢šâì Java Runtime Environment (¢¥àášî 1.4 š«š ¢ëè¥) ¯¥à¥€ ¢¢®€®¬
|
---|
| 274 | if "%GLILANG%" == "ru" echo ¡š¡«š®â¥ç®£® šâ¥à䥩á Greenstone.
|
---|
| 275 | goto exit
|
---|
| 276 |
|
---|
| 277 |
|
---|
| 278 | :checkGLI
|
---|
| 279 | :: ---- Check that the GLI has been compiled ----
|
---|
| 280 | if exist "classes/org/greenstone/gatherer/GathererProg.class" goto runGLI
|
---|
| 281 | if exist "GLI.jar" goto runGLI
|
---|
| 282 | echo.
|
---|
| 283 | if "%GLILANG%" == "en" echo You need to compile the Greenstone Librarian Interface (using makegli.bat)
|
---|
| 284 | if "%GLILANG%" == "en" echo before running this script.
|
---|
| 285 |
|
---|
| 286 | if "%GLILANG%" == "es" echo Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone
|
---|
| 287 | if "%GLILANG%" == "es" echo (por medio de makegli.bat) antes de ejecutar este gui¢n.
|
---|
| 288 |
|
---|
| 289 | if "%GLILANG%" == "fr" echo Vous devez compiler le Greenstone Interface (en utilisant makegil.bat)
|
---|
| 290 | if "%GLILANG%" == "fr" echo avant d'excuter ce script.
|
---|
| 291 |
|
---|
| 292 | if "%GLILANG%" == "ru" echo ë €®«Šë ª®¬¯š«šà®¢ âì ¡š¡«š®â¥çë© šâ¥à䥩á Greenstone (šá¯®«ì§ãï makegli.bat)
|
---|
| 293 | if "%GLILANG%" == "ru" echo ¯¥à¥€ ¢¢®€®¬ í⮣® áªàš¯â
|
---|
| 294 | goto exit
|
---|
| 295 |
|
---|
| 296 |
|
---|
| 297 | :runGLI
|
---|
| 298 | :: ---- Finally, run the GLI ----
|
---|
| 299 | echo.
|
---|
| 300 |
|
---|
| 301 | :: ---- Set wget path manually if don't want to use the version (1.9)
|
---|
| 302 | :: that comes with Greenstone -------
|
---|
| 303 | set WGETPATH=
|
---|
| 304 |
|
---|
| 305 | if "%GLILANG%" == "en" echo Running the Greenstone Librarian Interface...
|
---|
| 306 | if "%GLILANG%" == "es" echo Ejecutando la Interfaz de la Biblioteca Digital Greenstone...
|
---|
| 307 | if "%GLILANG%" == "fr" echo Excution de Greenstone Librarian Interface
|
---|
| 308 | if "%GLILANG%" == "ru" echo ¥ªãéš© ¡š¡«š®â¥çë© šâ¥à䥩á Greenstone...
|
---|
| 309 |
|
---|
| 310 | :: -Xms32M To set minimum memory
|
---|
| 311 | :: -Xmx32M To set maximum memory
|
---|
| 312 | :: -verbose:gc To set garbage collection messages
|
---|
[10333] | 313 | :: -Xincgc For incremental garbage collection
|
---|
[8008] | 314 | :: -Xprof Function call profiling
|
---|
| 315 | :: -Xloggc:<file> Write garbage collection log
|
---|
| 316 |
|
---|
| 317 | "%JAVAPATH%\java" -cp classes/;GLI.jar;lib/apache.jar;lib/qfslib.jar;lib/mail.jar;lib/activation.jar org.greenstone.gatherer.GathererProg -gsdl %GSDLHOME% -gsdl3 %GSDL3HOME% -gsdl3src %GSDL3SRCHOME% -perl %PERLPATH% -wget %WGETPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9
|
---|
| 318 |
|
---|
| 319 | if "%GLILANG%" == "en" echo Done!
|
---|
| 320 | if "%GLILANG%" == "es" echo Hecho!
|
---|
| 321 | if "%GLILANG%" == "fr" echo Termin!
|
---|
| 322 | if "%GLILANG%" == "ru" echo 믮«¥®!
|
---|
| 323 | goto done
|
---|
| 324 |
|
---|
| 325 | :exit
|
---|
| 326 | echo.
|
---|
| 327 | pause
|
---|
| 328 |
|
---|
| 329 | :done
|
---|
| 330 | :: ---- Clean up ----
|
---|
| 331 | set PERLPATH=
|
---|
| 332 | set JAVAPATH=
|
---|
| 333 | set WGETPATH=
|
---|