Changeset 6749
- Timestamp:
- 2004-02-09T15:56:40+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/gli.bat
r6670 r6749 1 1 @echo off 2 set GLILANG=en 3 2 4 3 5 :: -------- Run the Greenstone Librarian Interface -------- … … 5 7 :: This script must be run from within the directory in which it lives 6 8 if exist gli.bat goto start 7 echo This script must be run from the directory in which it resides. 9 if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides. 10 if "%GLILANG%" == "fr" echo Ce script doit tre excut 11 partir du rpertoire dans lequel il se trouve. 8 12 goto exit 9 13 … … 17 21 :findGSDL 18 22 echo. 19 echo Greenstone Librarian Interface (GLI) 20 echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato 21 echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt 22 echo This is free software, and you are welcome to redistribute it 23 if "%GLILANG%" == "en" echo Greenstone Librarian Interface (GLI) 24 if "%GLILANG%" == "en" echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato 25 if "%GLILANG%" == "en" echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt 26 if "%GLILANG%" == "en" echo This is free software, and you are welcome to redistribute it 27 28 if "%GLILANG%" == "fr" echo -- Still coming -- 23 29 echo. 24 30 :: ---- Determine GSDLHOME ---- … … 37 43 :testGSDL 38 44 :: Check that the Greenstone installation looks OK 39 echo Checking GSDL: %GSDLPATH% 45 if "%GLILANG%" == "en" echo Checking GSDL: %GSDLPATH% 46 if "%GLILANG%" == "fr" echo Vrification de GSDL: %GSDLPATH% 40 47 if exist "%GSDLPATH%\setup.bat" goto prepGSDL 41 48 echo. 42 echo The Greenstone installation could not be found, or is incomplete. 43 echo Try reinstalling Greenstone then running this script again. 49 if "%GLILANG%" == "en" echo The Greenstone installation could not be found, or is incomplete. 50 if "%GLILANG%" == "en" echo Try reinstalling Greenstone then running this script again. 51 52 if "%GLILANG%" == "fr" echo L'installation de Greenstone est introuvable ou incomplte. Essayez 53 if "%GLILANG%" == "fr" echo de rinstaller Greenstone et excutez ce script 54 nouveau. 44 55 goto exit 45 56 … … 91 102 :testPerl 92 103 :: Check that a Perl executable has been found 93 echo Checking Perl: %PERLPATH% 104 if "%GLILANG%" == "en" echo Checking Perl: %PERLPATH% 105 if "%GLILANG%" == "fr" echo Vrification de Perl: %PERLPATH% 94 106 if exist "%PERLPATH%\perl.exe" goto findJava 95 107 96 108 :noPerl 97 109 echo. 98 echo The Greenstone Librarian Interface requires perl in order to operate, 99 echo but perl could not be detected on your system. Please ensure that perl 100 echo is installed and is on your search path, then rerun this script. 110 if "%GLILANG%" == "en" echo The Greenstone Librarian Interface requires perl in order to operate, 111 if "%GLILANG%" == "en" echo but perl could not be detected on your system. Please ensure that perl 112 if "%GLILANG%" == "en" echo is installed and is on your search path, then rerun this script. 113 114 if "%GLILANG%" == "fr" echo Greenstone Librarian Interface ncessite perl pour son fonctionnement, 115 if "%GLILANG%" == "fr" echo mais perl n'a pas pu tre dtect dans votre systme. Veuillez vous 116 if "%GLILANG%" == "fr" echo assurer que perl est install et est spcifi dans votre chemin de 117 if "%GLILANG%" == "fr" echo recherche, puis redmarrez ce script. 101 118 goto exit 102 119 … … 145 162 :testJava 146 163 :: Check that a Java executable has been found 147 echo Checking Java: %JAVAPATH% 164 if "%GLILANG%" == "en" echo Checking Java: %JAVAPATH% 165 if "%GLILANG%" == "fr" echo Vrification de Java: %JAVAPATH% 148 166 if exist "%JAVAPATH%\java.exe" goto checkGLI 149 167 150 168 :noJava 151 169 echo. 152 echo Failed to locate an appropriate version of Java. You must install a 153 echo Java Runtime Environment (version 1.4 or greater) before running the 154 echo Greenstone Librarian Interface. 170 if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Java. You must install a 171 if "%GLILANG%" == "en" echo Java Runtime Environment (version 1.4 or greater) before running the 172 if "%GLILANG%" == "en" echo Greenstone Librarian Interface. 173 174 if "%GLILANG%" == "fr" echo Une version adquate de Java n'a pas pu tre localise. Vous devez 175 if "%GLILANG%" == "fr" echo installer un Java Runtime Environment (version 1.4 ou suprieur) 176 if "%GLILANG%" == "fr" echo avant de dmarrer Greenstone Librarian Interface. 155 177 goto exit 156 178 … … 161 183 if exist "GLI.jar" goto runGLI 162 184 echo. 163 echo You need to compile the Greenstone Librarian Interface (using makegli.bat) 164 echo before running this script. 185 if "%GLILANG%" == "en" echo You need to compile the Greenstone Librarian Interface (using makegli.bat) 186 if "%GLILANG%" == "en" echo before running this script. 187 188 if "%GLILANG%" == "fr" echo Vous devez compiler le Greenstone Interface (en utilisant makegil.bat) 189 if "%GLILANG%" == "fr" echo avant d'excuter ce script. 165 190 goto exit 166 191 … … 169 194 :: ---- Finally, run the GLI ---- 170 195 echo. 171 echo Running the Greenstone Librarian Interface... 196 if "%GLILANG%" == "en" echo Running the Greenstone Librarian Interface... 197 if "%GLILANG%" == "fr" echo Excution de Greenstone Librarian Interface 172 198 173 199 :: -Xms32M To set minimum memory … … 181 207 "%JAVAPATH%\java" -cp classes/;GLI.jar;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar org.greenstone.gatherer.Gatherer -gsdl %GSDLHOME% -perl %PERLPATH% %1 %2 %3 %4 %5 %6 %7 %8 %9 182 208 183 echo Done! 209 if "%GLILANG%" == "en" echo Done! 210 if "%GLILANG%" == "fr" echo Termin! 184 211 goto done 185 212 … … 187 214 "%JAVAPATH%\java" -cp classes/;GLI.jar;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar org.greenstone.gatherer.Gatherer -gsdl %GSDLHOME% -perl %PERLPATH% -library %GSDLHOME%\server.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 188 215 189 echo Done! 216 if "%GLILANG%" == "en" echo Done! 217 if "%GLILANG%" == "fr" echo Termin! 190 218 goto done 191 219
Note:
See TracChangeset
for help on using the changeset viewer.