Changeset 9862
- Timestamp:
- 2005-05-12T16:17:38+12:00 (19 years ago)
- Location:
- trunk/gli
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/makegli.bat
r9827 r9862 82 82 if "%GLILANG%" == "fr" echo Vrification de Javac: %JAVACPATH% 83 83 if "%GLILANG%" == "ru" echo ஢¥àª Javac: %JAVACPATH% 84 if exist "%JAVACPATH%\javac.exe" goto checkVer84 if exist "%JAVACPATH%\javac.exe" goto makeGLI 85 85 86 86 :noJavac … … 104 104 if "%GLILANG%" == "ru" echo šâ¥à䥩á Greenstone. 105 105 goto exit 106 107 :checkVer108 :: Check that the version of Javac is new enough (1.4.0 or higher) to compile the GLI109 "%JAVACPATH%\javac.exe" -Xstdout javacchk.tmp -target 1.4110 if not errorlevel 1 goto makeGLI111 :: Nasty special code for javac 1.4.2, since it complains about "no source files"112 find "javac: no source files" javacchk.tmp >nul113 if not errorlevel 1 goto makeGLI114 del javacchk.tmp115 echo.116 if "%GLILANG%" == "en" echo The version of the Java Development Kit you have installed is too old117 if "%GLILANG%" == "en" echo to compile the Greenstone Librarian Interface. Please install a new118 if "%GLILANG%" == "en" echo version of the Java SDK (version 1.4 or newer) and rerun this script.119 120 if "%GLILANG%" == "es" echo La versi¢n del Kit de Desarrollo de Software de Java (SDK por sus siglas121 if "%GLILANG%" == "es" echo en ingls) que usted tiene instalada es demasiado vieja para poder compilar122 if "%GLILANG%" == "es" echo la Interfaz de la Biblioteca Digital Greenstone. Por favor instale una nueva123 if "%GLILANG%" == "es" echo versi¢n del Kit de Desarrollo de Software Java (versi¢n 1.4 o posterior)124 if "%GLILANG%" == "es" echo y ejecute nuevamente este gui¢n.125 126 if "%GLILANG%" == "fr" echo La version de Java Development Kit que vous avez installe est trop vieille127 if "%GLILANG%" == "fr" echo pour compiler Greenstone Librarian Interface. Veuillez installer une nouvelle128 if "%GLILANG%" == "fr" echo version de Java SDK (version 1.4 ou plus rcente) et redmarrez ce script.129 130 if "%GLILANG%" == "ru" echo ¥àášï Java Runtime Environment, ª®â®àãî ë ãáâ ®¢š«š, ®ç¥ì áâ à , ç⮡ë ã¯à ¢«ïâì131 if "%GLILANG%" == "ru" echo ¡š¡«š®â¥çë¬ šâ¥à䥩ᮬ Greenstone. ®Š «ã©áâ , ãáâ ®¢šâ¥ ®¢ãî132 if "%GLILANG%" == "ru" echo ¢¥àášî JRE (¢¥àášî 1.4 š«š ¡®«¥¥ ®¢ãî) š ¯¥à¥ãáâ ®¢šâ¥ íâ®â áªàš¯â133 goto exit134 106 135 107 -
trunk/gli/makegli.sh
r9656 r9862 78 78 fi 79 79 80 # Check that the version of javac is new enough (1.4.0 or higher) to compile the GLI81 javacOK=`$javacpath -target 1.4 2>&1`82 if [ ! "$javacOK" = "" ]; then83 # Special code for javac 1.4.2, since it complains about "no source files"84 javacOK142=`$javacpath -target 1.4 2>&1 | grep "javac: no source files"`85 # Special code for javac 1.5, since it is different again86 javacOK15=`$javacpath -target 1.5 2>&1 | grep "javac: no source files"`87 if [ "$javacOK142" = "" ] && [ "$javacOK15" = "" ]; then88 echo89 if [ "$glilang" == "es" ]; then90 echo "La versión del Kit de Desarrollo de Software de Java (SDK por "91 echo "sus siglas en inglés) que usted tiene instalada es demasiado "92 echo "vieja para poder compilar la Interfaz de la Biblioteca Digital "93 echo "Greenstone. Por favor instale una nueva versión del Kit de "94 echo "Desarrollo de Software Java (versión 1.4 o posterior) y ejecute "95 echo "nuevamente este guión."96 elif [ "$glilang" == "fr" ]; then97 echo "La version de Java Development Kit que vous avez installée est trop"98 echo "vieille pour compiler Greenstone Librarian Interface. Veuillez "99 echo "installer une nouvelle version de Java SDK (version 1.4 ou plus"100 echo "récente) et redémarrez ce script."101 elif [ "$glilang" == "ru" ]; then102 echo "÷ÅÒÓÉÑ Java Development Kit, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÓÌÉÛËÏÍ ÓÔÁÒÁ,"103 echo "ÞÔÏÂÙ ÄÁÔØ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone."104 echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ"105 echo "ÎÏ×ÕÀ) É ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ."106 else107 echo "The version of the Java Development Kit you have installed is too old"108 echo "to compile the Greenstone Librarian Interface. Please install a new"109 echo "version of the Java SDK (version 1.4 or newer) and rerun this script."110 fi111 exit 1112 fi113 fi114 115 116 80 ## ---- Compile the GLI ---- 117 81 echo
Note:
See TracChangeset
for help on using the changeset viewer.