Changeset 6747 for trunk/gli/makegli.bat
- Timestamp:
- 2004-02-09T15:51:07+13:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/makegli.bat
r6670 r6747 1 1 @echo off 2 set GLILANG=en 2 3 3 echo.4 echo Greenstone Librarian Interface (GLI)5 echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato6 echo GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt7 echo This is free software, and you are welcome to redistribute it8 echo.9 4 10 5 :: -------- Compile the Greenstone Librarian Interface -------- 11 6 7 echo. 8 if "%GLILANG%" == "en" echo Greenstone Librarian Interface (GLI) 9 if "%GLILANG%" == "en" echo Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato 10 if "%GLILANG%" == "en" echo GLI 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 if "%GLILANG%" == "fr" echo -- Still coming -- 14 echo. 15 12 16 :: This script must be run from within the directory in which it lives 13 17 if exist makegli.bat goto findJavac 14 echo This script must be run from the directory in which it resides. 18 if "%GLILANG%" == "en" echo This script must be run from the directory in which it resides. 19 if "%GLILANG%" == "fr" echo Ce script doit tre excut 20 partir du rpertoire dans lequel il se trouve. 15 21 goto exit 16 22 … … 54 60 :testJavac 55 61 :: Check that a Javac executable has been found 56 echo Checking Javac: %JAVACPATH% 62 if "%GLILANG%" == "en" echo Checking Javac: %JAVACPATH% 63 if "%GLILANG%" == "fr" echo Vrification de Javac: %JAVACPATH% 57 64 if exist "%JAVACPATH%\javac.exe" goto checkVer 58 65 59 66 :noJavac 60 67 echo. 61 echo Failed to locate an appropriate version of Javac. You must install a 62 echo Java Development Kit (version 1.4 or greater) before compiling the 63 echo Greenstone Librarian Interface. 68 if "%GLILANG%" == "en" echo Failed to locate an appropriate version of Javac. You must install a 69 if "%GLILANG%" == "en" echo Java Development Kit (version 1.4 or greater) before compiling the 70 if "%GLILANG%" == "en" echo Greenstone Librarian Interface. 71 72 if "%GLILANG%" == "fr" echo Une version approprie de Javac n'a pas pu tre localise. Vous devez 73 if "%GLILANG%" == "fr" echo installer un Kit de Dveloppement Java (version 1.4 ou suprieure) 74 if "%GLILANG%" == "fr" echo avant de produire la documentation de Greenstone Librarian Interface. 64 75 goto exit 65 76 … … 73 84 del javacchk.tmp 74 85 echo. 75 echo The version of the Java Development Kit you have installed is too old 76 echo to compile the Greenstone Librarian Interface. Please install a new 77 echo version of the Java SDK (version 1.4 or newer) and rerun this script. 86 if "%GLILANG%" == "en" echo The version of the Java Development Kit you have installed is too old 87 if "%GLILANG%" == "en" echo to compile the Greenstone Librarian Interface. Please install a new 88 if "%GLILANG%" == "en" echo version of the Java SDK (version 1.4 or newer) and rerun this script. 89 90 if "%GLILANG%" == "fr" echo La version de Java Development Kit que vous avez installe est trop vieille 91 if "%GLILANG%" == "fr" echo pour compiler Greenstone Librarian Interface. Veuillez installer une nouvelle 92 if "%GLILANG%" == "fr" echo version de Java SDK (version 1.4 ou plus rcente) et redmarrez ce script. 78 93 goto exit 79 94 … … 86 101 if "%1" == "" goto makeAll 87 102 :: If a file has been specified as a command-line argument, just compile that file 88 echo Compiling %1 and dependant classes... 103 if "%GLILANG%" == "en" echo Compiling %1 and dependant classes... 104 if "%GLILANG%" == "fr" echo Compilation de %1 et des classes dpendantes,,, 89 105 90 106 "%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar %1 91 107 92 echo Done! 108 if "%GLILANG%" == "en" echo Done! 109 if "%GLILANG%" == "fr" echo Termin! 93 110 goto done 94 111 95 112 :makeAll 96 113 :: Otherwise compile the lot... 97 echo Compiling the Greenstone Librarian Interface... 114 if "%GLILANG%" == "en" echo Compiling the Greenstone Librarian Interface... 115 if "%GLILANG%" == "fr" echo Compilation de Greenstone Librarian Interface,,, 98 116 99 117 "%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar src/org/greenstone/gatherer/*.java … … 115 133 "%JAVACPATH%\javac.exe" -d classes/ -sourcepath src/ -classpath classes/;lib/apache.jar;lib/calpa.jar;lib/jp.jar;lib/polloxml.jar;lib/qfslib.jar;lib/skinlf.jar;lib/nanoxml.jar src/org/greenstone/gatherer/valuetree/*.java 116 134 117 echo Done! 135 if "%GLILANG%" == "en" echo Done! 136 if "%GLILANG%" == "fr" echo Termin! 118 137 goto done 119 138
Note:
See TracChangeset
for help on using the changeset viewer.