Changeset 9862


Ignore:
Timestamp:
2005-05-12T16:17:38+12:00 (19 years ago)
Author:
mdewsnip
Message:

Removed the javac version check -- this was starting to get out of control and new versions of Java always make it worse. Not many people will be compiling the GLI and you know pretty quickly if your version of Javac isn't appropriate, so I don't think it's a big loss.

Location:
trunk/gli
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/makegli.bat

    r9827 r9862  
    8282if "%GLILANG%" == "fr" echo V‚rification de Javac: %JAVACPATH%
    8383if "%GLILANG%" == "ru" echo à®¢¥àª  Javac: %JAVACPATH%
    84 if exist "%JAVACPATH%\javac.exe" goto checkVer
     84if exist "%JAVACPATH%\javac.exe" goto makeGLI
    8585
    8686:noJavac
     
    104104    if "%GLILANG%" == "ru" echo š­â¥àä¥©á  Greenstone.
    105105    goto exit
    106 
    107 :checkVer
    108 :: Check that the version of Javac is new enough (1.4.0 or higher) to compile the GLI
    109 "%JAVACPATH%\javac.exe" -Xstdout javacchk.tmp -target 1.4
    110 if not errorlevel 1 goto makeGLI
    111     :: Nasty special code for javac 1.4.2, since it complains about "no source files"
    112     find "javac: no source files" javacchk.tmp >nul
    113     if not errorlevel 1 goto makeGLI
    114         del javacchk.tmp
    115         echo.
    116         if "%GLILANG%" == "en" echo The version of the Java Development Kit you have installed is too old
    117         if "%GLILANG%" == "en" echo to compile the Greenstone Librarian Interface. Please install a new
    118         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 siglas
    121     if "%GLILANG%" == "es" echo en ingl‚s) que usted tiene instalada es demasiado vieja para poder compilar
    122     if "%GLILANG%" == "es" echo la Interfaz de la Biblioteca Digital Greenstone. Por favor instale una nueva
    123     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 install‚e est trop vieille
    127         if "%GLILANG%" == "fr" echo pour compiler Greenstone Librarian Interface. Veuillez installer une nouvelle
    128         if "%GLILANG%" == "fr" echo version de Java SDK (version 1.4 ou plus r‚cente) et red‚marrez 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 exit
    134106
    135107
  • trunk/gli/makegli.sh

    r9656 r9862  
    7878fi
    7979
    80 # Check that the version of javac is new enough (1.4.0 or higher) to compile the GLI
    81 javacOK=`$javacpath -target 1.4 2>&1`
    82 if [ ! "$javacOK" = "" ]; then
    83     # 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 again
    86     javacOK15=`$javacpath -target 1.5 2>&1 | grep "javac: no source files"`
    87     if [ "$javacOK142" = "" ] && [ "$javacOK15" = "" ]; then
    88     echo
    89     if [ "$glilang" == "es" ]; then
    90         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" ]; then
    97         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" ]; then
    102         echo "÷ÅÒÓÉÑ Java Development Kit, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÓÌÉÛËÏÍ ÓÔÁÒÁ,"
    103         echo "ÞÔÏÂÙ ÄÁÔØ ×ÏÚÍÏÖÎÏÓÔØ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone."
    104         echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ"
    105         echo "ÎÏ×ÕÀ) É ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ."
    106     else
    107         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     fi
    111     exit 1
    112     fi
    113 fi
    114 
    115 
    11680## ---- Compile the GLI ----
    11781echo
Note: See TracChangeset for help on using the changeset viewer.