Changeset 12287


Ignore:
Timestamp:
07/24/06 15:06:16 (15 years ago)
Author:
kjdon
Message:

Made these POSIX compliant (I think) based on patch and comments sent in by James Strother.
changed [ a == b] to [a = b], = "" to = "x", removed popd and pushd. changed source to .

Location:
trunk/gli
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/clean.sh

    r10422 r12287  
    66## ---- Remove class files ----
    77echo
    8 if [ "$glilang" == "es" ]; then
     8if [ "$glilang" = "es" ]; then
    99    echo "Eliminando los archivos de clase de la Interfaz de la Biblioteca "
    1010    echo "Digital Greenstone..."
    11 elif [ "$glilang" == "fr" ]; then
     11elif [ "$glilang" = "fr" ]; then
    1212    echo "Suppression des fichiers de classe de Greenstone Librarian Interface"
    13 elif [ "$glilang" == "ru" ]; then
     13elif [ "$glilang" = "ru" ]; then
    1414    echo "õÄÁÌÅÎÉÅ ÆÁÊÌÏ× ËÌÁÓÓÁ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone"
    1515else
     
    2020rm -rf classes/org/greenstone/gatherer/*
    2121
    22 if [ "$glilang" == "es" ]; then
     22if [ "$glilang" = "es" ]; then
    2323    echo "¡Hecho!"
    24 elif [ "$glilang" == "fr" ]; then
     24elif [ "$glilang" = "fr" ]; then
    2525    echo "Terminé!"
    26 elif [ "$glilang" == "ru" ]; then
     26elif [ "$glilang" = "ru" ]; then
    2727    echo "÷ÙÐÏÌÎÅÎÏ!"
    2828else
  • trunk/gli/client-gli.sh

    r11801 r12287  
    33
    44echo
    5 if [ "$glilang" == "es" ]; then
     5if [ "$glilang" = "es" ]; then
    66    echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)"
    77    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    99    echo "Para mayor información vea los términos de la licencia en LICENSE.txt"
    1010    echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita"
    11 elif [ "$glilang" == "fr" ]; then
     11elif [ "$glilang" = "fr" ]; then
    1212    echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)"
    1313    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
    1414    echo "GLI est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt"
    1515    echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer"
    16 elif [ "$glilang" == "ru" ]; then
     16elif [ "$glilang" = "ru" ]; then
    1717    echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)"
    1818    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    3232thisdir=`pwd`
    3333if [ ! -f "${thisdir}/client-gli.sh" ]; then
    34     if [ "$glilang" == "es" ]; then
     34    if [ "$glilang" = "es" ]; then
    3535        echo "Este guión deberá ejecutarse desde el directorio en el que reside."
    36     elif [ "$glilang" == "fr" ]; then
     36    elif [ "$glilang" = "fr" ]; then
    3737    echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve."
    38     elif [ "$glilang" == "ru" ]; then
     38    elif [ "$glilang" = "ru" ]; then
    3939    echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ"
    4040    else
     
    4949
    5050# Some users may set the above line manually
    51 if [ "$javapath" == "" ]; then
     51if [ "x$javapath" = "x" ]; then
    5252
    5353    # If it is set, use the JAVA_HOME environment variable
    54     if [ "$JAVA_HOME" != "" ]; then
     54    if [ "x$JAVA_HOME" != "x" ]; then
    5555    javapath="$JAVA_HOME/bin/java"
    5656
     
    6262
    6363# Check that a Java executable has been found
    64 if [ "$glilang" == "es" ]; then
     64if [ "$glilang" = "es" ]; then
    6565    echo "Revisando Java: $javapath"
    66 elif [ "$glilang" == "fr" ]; then
     66elif [ "$glilang" = "fr" ]; then
    6767    echo "Vérification de Java: $javapath"
    68 elif [ "$glilang" == "ru" ]; then
     68elif [ "$glilang" = "ru" ]; then
    6969    echo "ðÒÏ×ÅÒËÁ Java: $javapath"
    7070else
     
    7373if [ ! -x "$javapath" ]; then
    7474    echo
    75     if [ "$glilang" == "es" ]; then
     75    if [ "$glilang" = "es" ]; then
    7676    echo "No se pudo localizar una versión apropiada de Java. Usted deberá "
    7777    echo "instalar un Ambiente de Ejecución Java (versión 1.4 o superior) "
    7878    echo "antes de correr la Interfaz de la Biblioteca Digital Greenstone."
    79     elif [ "$glilang" == "fr" ]; then
     79    elif [ "$glilang" = "fr" ]; then
    8080    echo "Une version adéquate de Java n'a pas pu être localisée."
    8181    echo "Vous devez installer un Java Runtime Environment (version 1.4 ou"
    8282    echo "supérieur) avant de démarrer Greenstone Librarian Interface."
    83     elif [ "$glilang" == "ru" ]; then
     83    elif [ "$glilang" = "ru" ]; then
    8484    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Java."
    8585    echo "÷Ù ÄÏÌÖÎÙ ÕÓÔÁÎÏ×ÉÔØ Java Runtime Environment (×ÅÒÓÉÀ 1.4 ÉÌÉ ×ÙÛÅ)"
     
    9898if [ $? -ne 2 ] ; then
    9999    echo
    100     if [ "$glilang" == "es" ]; then
     100    if [ "$glilang" = "es" ]; then
    101101    echo "La versión del Ambiente de Ejecución Java (JRE por sus siglas en "
    102102    echo "inglés) que usted tiene instalada es demasiado vieja para ejecutar "
     
    104104    echo "una nueva versión del Ambiente de Ejecución Java (versión 1.4 o "
    105105    echo "posterior) y ejecute nuevamente este guión."
    106     elif [ "$glilang" == "fr" ]; then
     106    elif [ "$glilang" = "fr" ]; then
    107107    echo "La version de Java Runtime Environment que vous avez installée est"
    108108    echo "trop vielle pour faire fonctionner Greenstone Librarian Interface."
    109109    echo "Veuillez installer une nouvelle version du JRE (version 1.4 ou plus"
    110110    echo "récente) et redémarrez le script."
    111     elif [ "$glilang" == "ru" ]; then
     111    elif [ "$glilang" = "ru" ]; then
    112112    echo "÷ÅÒÓÉÑ Java Runtime Environment, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÏÞÅÎØ ÓÔÁÒÁ,"
    113113    echo "ÞÔÏÂÙ ÕÐÒÁ×ÌÑÔØ ÂÉÂÌÉÏÔÅÞÎÙÍ ÉÎÔÅÒÆÅÊÓÏÍ Greenstone. ðÏÖÁÌÕÊÓÔÁ, "
     
    125125if [ ! -f "classes/org/greenstone/gatherer/GathererProg.class" ] && [ ! -f "GLI.jar" ]; then
    126126    echo
    127     if [ "$glilang" == "es" ]; then
     127    if [ "$glilang" = "es" ]; then
    128128    echo "Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone"
    129129    echo "(por medio de makegli.sh) antes de ejecutar este guión."
    130     elif [ "$glilang" == "fr" ]; then
     130    elif [ "$glilang" = "fr" ]; then
    131131    echo "Vous devez compiler le Greenstone Interface (en utilisant makegli.sh)"
    132132    echo "avant d'exécuter ce script."
    133     elif [ "$glilang" == "ru" ]; then
     133    elif [ "$glilang" = "ru" ]; then
    134134    echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone"
    135135    echo "(ÉÓÐÏÌØÚÕÑ makegli.sh) ÐÅÒÅÄ ××ÏÄÏÍ ÜÔÏÇÏ ÓËÒÉÐÔÁ"
     
    144144## ---- Finally, run the GLI ----
    145145echo
    146 if [ "$glilang" == "es" ]; then
     146if [ "$glilang" = "es" ]; then
    147147    echo "Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
    148 elif [ "$glilang" == "fr" ]; then
     148elif [ "$glilang" = "fr" ]; then
    149149    echo "Exécution de Greenstone Librarian Interface"
    150 elif [ "$glilang" == "ru" ]; then
     150elif [ "$glilang" = "ru" ]; then
    151151    echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
    152152else
     
    164164$javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $*
    165165
    166 if [ "$glilang" == "es" ]; then
     166if [ "$glilang" = "es" ]; then
    167167    echo "¡Hecho!"
    168 elif [ "$glilang" == "fr" ]; then
     168elif [ "$glilang" = "fr" ]; then
    169169    echo "Terminé!"
    170 elif [ "$glilang" == "ru" ]; then
     170elif [ "$glilang" = "ru" ]; then
    171171    echo "÷ÙÐÏÌÎÅÎÏ!"
    172172else
  • trunk/gli/document.sh

    r9081 r12287  
    99
    1010# Some users may set the above line manually
    11 if [ "$javadocpath" == "" ]; then
     11if [ "x$javadocpath" = "x" ]; then
    1212
    1313    # If it is set, use the JAVA_HOME environment variable
    14     if [ "$JAVA_HOME" != "" ]; then
     14    if [ "x$JAVA_HOME" != "x" ]; then
    1515    javadocpath="$JAVA_HOME/bin/javadoc"
    1616
     
    2222
    2323# Check that a Javadoc executable has been found
    24 if [ "$glilang" == "es" ]; then
     24if [ "$glilang" = "es" ]; then
    2525    echo "Revisando Javadoc: $javadocpath"
    26 elif [ "$glilang" == "fr" ]; then
     26elif [ "$glilang" = "fr" ]; then
    2727    echo "Vérification de Javadoc: $javadocpath"
    28 elif [ "$glilang" == "ru" ]; then
     28elif [ "$glilang" = "ru" ]; then
    2929    echo "ðÒÏ×ÅÒËÁ Javadoc: $javadocpath"
    3030else
     
    3333if [ ! -x "$javadocpath" ]; then
    3434    echo
    35     if [ "$glilang" == "es" ]; then
     35    if [ "$glilang" = "es" ]; then
    3636    echo "No se pudo localizar una versión apropiada de Javadoc. Usted deberá "
    3737        echo "instalar un Kit de Desarrollo de Software Java (versión 1.4 o "
    3838        echo "superior) antes de generar la documentación para la Interfaz de la "
    3939        echo "Biblioteca Digital Greenstone."
    40     elif [ "$glilang" == "fr" ]; then
     40    elif [ "$glilang" = "fr" ]; then
    4141    echo "Une version appropriée de Javadoc n'a pas pu être localisée."
    4242    echo "Vous devez installer un Kit de Développement Java (version 1.4 ou"
    4343    echo "supérieure) avant de produire la documentation de Greenstone"
    4444    echo "Librarian Interface."
    45     elif [ "$glilang" == "ru" ]; then
     45    elif [ "$glilang" = "ru" ]; then
    4646    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javadoc."
    4747    echo "÷Ù ÄÏÌÖÎÙ ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ Java Development Kit (×ÅÒÓÉÑ 1.4 ÉÌÉ ×ÙÛÅ) "
     
    5959## ---- Document the GLI ----
    6060echo
    61 if [ "$glilang" == "es" ]; then
     61if [ "$glilang" = "es" ]; then
    6262    echo "Generando documentación para la Interfaz de la Biblioteca Digital"
    6363    echo "Greenstone..."
    64 elif [ "$glilang" == "fr" ]; then
     64elif [ "$glilang" = "fr" ]; then
    6565    echo "Production de documentation pour la Greenstone Librarian Interface"
    66 elif [ "$glilang" == "ru" ]; then
     66elif [ "$glilang" = "ru" ]; then
    6767    echo "çÅÎÅÒÉÒÏ×ÁÎÉÅ ÄÏËÕÍÅÎÔÁÃÉÉ ÄÌÑ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone"
    6868else
     
    7272javadoc -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar -sourcepath src/ -source 1.4 -author -breakiterator -d docs/ -group "Greenstone Librarian Interface" org.greenstone.gatherer:org.greenstone.gatherer.cdm:org.greenstone.gatherer.collection:org.greenstone.gatherer.feedback:org.greenstone.gatherer.file:org.greenstone.gatherer.gems:org.greenstone.gatherer.gui:org.greenstone.gatherer.gui.metaaudit:org.greenstone.gatherer.gui.tree:org.greenstone.gatherer.metadata:org.greenstone.gatherer.shell:org.greenstone.gatherer.util -private -splitindex -version   org.greenstone.gatherer org.greenstone.gatherer.cdm org.greenstone.gatherer.collection org.greenstone.gatherer.feedback org.greenstone.gatherer.file org.greenstone.gatherer.gems org.greenstone.gatherer.gui org.greenstone.gatherer.gui.metaaudit org.greenstone.gatherer.gui.tree org.greenstone.gatherer.metadata org.greenstone.gatherer.shell org.greenstone.gatherer.util
    7373
    74 if [ "$glilang" == "es" ]; then
     74if [ "$glilang" = "es" ]; then
    7575    echo "¡Hecho!"
    76 elif [ "$glilang" == "fr" ]; then
     76elif [ "$glilang" = "fr" ]; then
    7777    echo "Terminé!"
    78 elif [ "$glilang" == "ru" ]; then
     78elif [ "$glilang" = "ru" ]; then
    7979    echo "÷ÙÐÏÌÎÅÎÏ!"
    8080else
  • trunk/gli/gli4gs3.sh

    r11801 r12287  
    33
    44echo
    5 if [ "$glilang" == "es" ]; then
     5if [ "$glilang" = "es" ]; then
    66    echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)"
    77    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    99    echo "Para mayor información vea los términos de la licencia en LICENSE.txt"
    1010    echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita"
    11 elif [ "$glilang" == "fr" ]; then
     11elif [ "$glilang" = "fr" ]; then
    1212    echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)"
    1313    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
    1414    echo "GLI est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt"
    1515    echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer"
    16 elif [ "$glilang" == "ru" ]; then
     16elif [ "$glilang" = "ru" ]; then
    1717    echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)"
    1818    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    3232thisdir=`pwd`
    3333if [ ! -f "${thisdir}/gli4gs3.sh" ]; then
    34     if [ "$glilang" == "es" ]; then
     34    if [ "$glilang" = "es" ]; then
    3535        echo "Este guión deberá ejecutarse desde el directorio en el que reside."
    36     elif [ "$glilang" == "fr" ]; then
     36    elif [ "$glilang" = "fr" ]; then
    3737    echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve."
    38     elif [ "$glilang" == "ru" ]; then
     38    elif [ "$glilang" = "ru" ]; then
    3939    echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ"
    4040    else
     
    5050
    5151# Some users may set the above line manually
    52 if [ "$gsdl3path" == "" ]; then
     52if [ "x$gsdl3path" = "x" ]; then
    5353    # Check the environment variable first
    54     if [ "$GSDL3SRCHOME" != "" ]; then
     54    if [ "x$GSDL3SRCHOME" != "x" ]; then
    5555    gsdl3path=$GSDL3SRCHOME
    5656
    5757    # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone 3
    5858    else
    59     pushd .. > /dev/null
    60     gsdl3path=`pwd`
    61     popd > /dev/null
     59    gsdl3path=`(cd .. && pwd)`
    6260    fi
    6361fi
    6462
    6563# Check that the Greenstone 3 installation looks OK
    66 if [ "$glilang" == "es" ]; then
     64if [ "$glilang" = "es" ]; then
    6765    echo "Revisando GSDL3: $gsdl3path"
    68 elif [ "$glilang" == "fr" ]; then
     66elif [ "$glilang" = "fr" ]; then
    6967    echo "Vérification de GSDL3: $gsdl3path"
    70 elif [ "$glilang" == "ru" ]; then
     68elif [ "$glilang" = "ru" ]; then
    7169    echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3path"
    7270else
     
    7573if [ ! -f "${gsdl3path}/gs3-setup.sh" ] ; then
    7674    echo
    77     if [ "$glilang" == "es" ]; then
     75    if [ "$glilang" = "es" ]; then
    7876    echo "No se pudo encontrar la instalación de Greenstone 3 o está incompleta."
    7977        echo "Trate de reinstalar Greenstone 3 y a continuación ejecute nuevamente"
    8078    echo "este guión."
    81     elif [ "$glilang" == "fr" ]; then
     79    elif [ "$glilang" = "fr" ]; then
    8280    echo "L'installation de Greenstone 3 est introuvable ou incomplète."
    8381    echo "Essayez de réinstaller Greenstone 3 et exécutez ce script à nouveau."
    84     elif [ "$glilang" == "ru" ]; then
     82    elif [ "$glilang" = "ru" ]; then
    8583    echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone 3 ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ."
    8684    echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone 3, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á."
     
    9391
    9492# Setup Greenstone 3, unless it has already been done
    95 if [ "$GSDL3HOME" == "" ] || [ "$GSDL3SRCHOME" == "" ]; then
    96     pushd $gsdl3path > /dev/null
    97     source gs3-setup.sh
    98     popd > /dev/null
     93if [ "x$GSDL3HOME" = "x" -o "x$GSDL3SRCHOME" = "x" ]; then
     94    cd "$gsdl3path"
     95    . gs3-setup.sh
     96    cd "$thisdir"
    9997fi
    10098
     
    105103
    106104# Some users may set the above line manually
    107 if [ "$gsdlpath" == "" ]; then
     105if [ "x$gsdlpath" = "x" ]; then
    108106    # Check the environment variable first
    109     if [ "$GSDLHOME" != "" ]; then
     107    if [ "x$GSDLHOME" != "x" ]; then
    110108    gsdlpath=$GSDLHOME
    111109
     
    117115
    118116# Check that the Greenstone installation looks OK
    119 if [ "$glilang" == "es" ]; then
     117if [ "$glilang" = "es" ]; then
    120118    echo "Revisando GSDL: $gsdlpath"
    121 elif [ "$glilang" == "fr" ]; then
     119elif [ "$glilang" = "fr" ]; then
    122120    echo "Vérification de GSDL: $gsdlpath"
    123 elif [ "$glilang" == "ru" ]; then
     121elif [ "$glilang" = "ru" ]; then
    124122    echo "ðÒÏ×ÅÒËÁ GSDL: $gsdlpath"
    125123else
     
    128126if [ ! -f "${gsdlpath}/setup.bash" ] ; then
    129127    echo
    130     if [ "$glilang" == "es" ]; then
     128    if [ "$glilang" = "es" ]; then
    131129    echo "No se pudo encontrar la instalación de Greenstone o está incompleta."
    132130        echo "Trate de reinstalar Greenstone y a continuación ejecute nuevamente"
    133131    echo "este guión."
    134     elif [ "$glilang" == "fr" ]; then
     132    elif [ "$glilang" = "fr" ]; then
    135133    echo "L'installation de Greenstone est introuvable ou incomplète."
    136134    echo "Essayez de réinstaller Greenstone et exécutez ce script à nouveau."
    137     elif [ "$glilang" == "ru" ]; then
     135    elif [ "$glilang" = "ru" ]; then
    138136    echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ."
    139137    echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á."
     
    146144
    147145# Setup Greenstone, unless it has already been done
    148 if [ "$GSDLHOME" == "" ]; then
    149     pushd $gsdlpath > /dev/null
    150     source setup.bash
    151     popd > /dev/null
     146if [ "x$GSDLHOME" = "x" ]; then
     147    cd "$gsdlpath"
     148    . setup.bash
     149    cd "$thisdir"
    152150fi
    153151
     
    157155
    158156# Some users may set the above line manually
    159 if [ "$perlpath" == "" ]; then
     157if [ "x$perlpath" = "x" ]; then
    160158    # Check if Perl is on the search path
    161159    perlpath=`which perl 2> /dev/null`
     
    163161
    164162# Check that a Perl executable has been found
    165 if [ "$glilang" == "es" ]; then
     163if [ "$glilang" = "es" ]; then
    166164    echo "Revisando Perl: $perlpath"
    167 elif [ "$glilang" == "fr" ]; then
     165elif [ "$glilang" = "fr" ]; then
    168166    echo "Vérification de Perl: $perlpath"
    169 elif [ "$glilang" == "ru" ]; then
     167elif [ "$glilang" = "ru" ]; then
    170168    echo "ðÒÏ×ÅÒËÁ Perl: $perlpath"
    171169else
     
    174172if [ ! -x "$perlpath" ] ; then
    175173    echo
    176     if [ "$glilang" == "es" ]; then
     174    if [ "$glilang" = "es" ]; then
    177175    echo "La Interfaz de la Biblioteca Digital Greenstone requiere Perl para "
    178176    echo "poder operar, pero éste no aparece en su sistema. Por favor asegúrese "
    179177    echo "de que Perl está instalado y se encuentra en su ruta de búsqueda. A "
    180178    echo "continuación ejecute nuevamente este guión."
    181     elif [ "$glilang" == "fr" ]; then
     179    elif [ "$glilang" = "fr" ]; then
    182180    echo "Greenstone Librarian Interface nécessite perl pour son fonctionnement,"
    183181    echo "mais perl n'a pas pu être détecté dans votre système. Veuillez vous "
    184182    echo "assurer que perl est installé et est spécifié dans votre chemin de "
    185183    echo "recherche, puis redémarrez ce script."
    186     elif [ "$glilang" == "ru" ]; then
     184    elif [ "$glilang" = "ru" ]; then
    187185    echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone ÔÒÅÂÕÅÔ Perl, ÞÔÏÂÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ"
    188186    echo "ÒÁÂÏÔÁÔØ, ÎÏ Perl ÎÅ ÂÙÌ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ÐÏÄÔ×ÅÒÄÉÔÅ, ÞÔÏ "
     
    202200
    203201# Some users may set the above line manually
    204 if [ "$javapath" == "" ]; then
     202if [ "x$javapath" = "x" ]; then
    205203
    206204    # If it is set, use the JAVA_HOME environment variable
    207     if [ "$JAVA_HOME" != "" ]; then
     205    if [ "x$JAVA_HOME" != "x" ]; then
    208206    javapath="$JAVA_HOME/bin/java"
    209207
     
    215213
    216214# Check that a Java executable has been found
    217 if [ "$glilang" == "es" ]; then
     215if [ "$glilang" = "es" ]; then
    218216    echo "Revisando Java: $javapath"
    219 elif [ "$glilang" == "fr" ]; then
     217elif [ "$glilang" = "fr" ]; then
    220218    echo "Vérification de Java: $javapath"
    221 elif [ "$glilang" == "ru" ]; then
     219elif [ "$glilang" = "ru" ]; then
    222220    echo "ðÒÏ×ÅÒËÁ Java: $javapath"
    223221else
     
    226224if [ ! -x "$javapath" ]; then
    227225    echo
    228     if [ "$glilang" == "es" ]; then
     226    if [ "$glilang" = "es" ]; then
    229227    echo "No se pudo localizar una versión apropiada de Java. Usted deberá "
    230228    echo "instalar un Ambiente de Ejecución Java (versión 1.4 o superior) "
    231229    echo "antes de correr la Interfaz de la Biblioteca Digital Greenstone."
    232     elif [ "$glilang" == "fr" ]; then
     230    elif [ "$glilang" = "fr" ]; then
    233231    echo "Une version adéquate de Java n'a pas pu être localisée."
    234232    echo "Vous devez installer un Java Runtime Environment (version 1.4 ou"
    235233    echo "supérieur) avant de démarrer Greenstone Librarian Interface."
    236     elif [ "$glilang" == "ru" ]; then
     234    elif [ "$glilang" = "ru" ]; then
    237235    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Java."
    238236    echo "÷Ù ÄÏÌÖÎÙ ÕÓÔÁÎÏ×ÉÔØ Java Runtime Environment (×ÅÒÓÉÀ 1.4 ÉÌÉ ×ÙÛÅ)"
     
    251249if [ $? -ne 2 ] ; then
    252250    echo
    253     if [ "$glilang" == "es" ]; then
     251    if [ "$glilang" = "es" ]; then
    254252    echo "La versión del Ambiente de Ejecución Java (JRE por sus siglas en "
    255253    echo "inglés) que usted tiene instalada es demasiado vieja para ejecutar "
     
    257255    echo "una nueva versión del Ambiente de Ejecución Java (versión 1.4 o "
    258256    echo "posterior) y ejecute nuevamente este guión."
    259     elif [ "$glilang" == "fr" ]; then
     257    elif [ "$glilang" = "fr" ]; then
    260258    echo "La version de Java Runtime Environment que vous avez installée est"
    261259    echo "trop vielle pour faire fonctionner Greenstone Librarian Interface."
    262260    echo "Veuillez installer une nouvelle version du JRE (version 1.4 ou plus"
    263261    echo "récente) et redémarrez le script."
    264     elif [ "$glilang" == "ru" ]; then
     262    elif [ "$glilang" = "ru" ]; then
    265263    echo "÷ÅÒÓÉÑ Java Runtime Environment, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÏÞÅÎØ ÓÔÁÒÁ,"
    266264    echo "ÞÔÏÂÙ ÕÐÒÁ×ÌÑÔØ ÂÉÂÌÉÏÔÅÞÎÙÍ ÉÎÔÅÒÆÅÊÓÏÍ Greenstone. ðÏÖÁÌÕÊÓÔÁ, "
     
    281279if [ ! -f "classes/org/greenstone/gatherer/GathererProg.class" ] && [ ! -f "GLI.jar" ]; then
    282280    echo
    283     if [ "$glilang" == "es" ]; then
     281    if [ "$glilang" = "es" ]; then
    284282    echo "Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone"
    285283    echo "(por medio de makegli.sh) antes de ejecutar este guión."
    286     elif [ "$glilang" == "fr" ]; then
     284    elif [ "$glilang" = "fr" ]; then
    287285    echo "Vous devez compiler le Greenstone Interface (en utilisant makegli.sh)"
    288286    echo "avant d'exécuter ce script."
    289     elif [ "$glilang" == "ru" ]; then
     287    elif [ "$glilang" = "ru" ]; then
    290288    echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone"
    291289    echo "(ÉÓÐÏÌØÚÕÑ makegli.sh) ÐÅÒÅÄ ××ÏÄÏÍ ÜÔÏÇÏ ÓËÒÉÐÔÁ"
     
    297295fi
    298296
    299 if [ "$1" == "-test" ]; then
    300     if [ "$glilang" == "es" ]; then
    301     echo "Clase de prueba: $2"
    302     echo "Argumentos $*"
    303     elif [ "$glilang" == "fr" ]; then
    304     echo "Classe de test: $2"
    305     echo "Arguments $*"
    306     elif [ "$glilang" == "ru" ]; then
    307     echo "éÓÐÙÔÁÔÅÌØÎÙÊ ËÌÁÓÓ: $2"
    308     echo "ðÁÒÁÍÅÔÒÙ $*"
    309     else
    310     echo "Testing class: $2"
    311     echo "Arguments $*"
    312     fi
    313     $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar $2 $3
    314     exit 0
    315 fi
    316 
    317297## ---- Finally, run the GLI ----
    318298echo
    319 if [ "$glilang" == "es" ]; then
     299if [ "$glilang" = "es" ]; then
    320300    echo "Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
    321 elif [ "$glilang" == "fr" ]; then
     301elif [ "$glilang" = "fr" ]; then
    322302    echo "Exécution de Greenstone Librarian Interface"
    323 elif [ "$glilang" == "ru" ]; then
     303elif [ "$glilang" = "ru" ]; then
    324304    echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
    325305else
    326306    echo "Running the Greenstone Librarian Interface..."
    327307fi
     308
     309stop_gli=0
     310while [ "$stop_gli" = "0" ] ; do
    328311
    329312# Other arguments you can provide to GLI to work around memory limitations, or debug
     
    335318# -Xloggc:<file>   Write garbage collection log
    336319
    337 $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -gsdl3 $GSDL3HOME -gsdl3src $GSDL3SRCHOME -wget $wgetpath $*
    338 
    339 if [ "$glilang" == "es" ]; then
     320    $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -gsdl3 $GSDL3HOME -gsdl3src $GSDL3SRCHOME -wget $wgetpath $*
     321    exit_status=$?
     322
     323  if [ "$exit_status" != "2" ] ; then
     324    stop_gli=1
     325  else
     326    echo
     327    if [ "$glilang" = "es" ]; then
     328        echo "Restarting/Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
     329    elif [ "$glilang" = "fr" ]; then
     330        echo "Restarting/Exécution de Greenstone Librarian Interface"
     331    elif [ "$glilang" = "ru" ]; then
     332        echo "Restarting/ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
     333    else
     334        echo "Restarting the Greenstone Librarian Interface..."
     335    fi
     336
     337  fi
     338done
     339
     340if [ "$glilang" = "es" ]; then
    340341    echo "¡Hecho!"
    341 elif [ "$glilang" == "fr" ]; then
     342elif [ "$glilang" = "fr" ]; then
    342343    echo "Terminé!"
    343 elif [ "$glilang" == "ru" ]; then
     344elif [ "$glilang" = "ru" ]; then
    344345    echo "÷ÙÐÏÌÎÅÎÏ!"
    345346else
  • trunk/gli/makegli.sh

    r11801 r12287  
    33
    44echo
    5 if [ "$glilang" == "es" ]; then
     5if [ "$glilang" = "es" ]; then
    66    echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)"
    77    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    99    echo "Para mayor información vea los términos de la licencia en LICENSE.txt"
    1010    echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita"
    11 elif [ "$glilang" == "fr" ]; then
     11elif [ "$glilang" = "fr" ]; then
    1212    echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)"
    1313    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
    1414    echo "GLI est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt"
    1515    echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer"
    16 elif [ "$glilang" == "ru" ]; then
     16elif [ "$glilang" = "ru" ]; then
    1717    echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)"
    1818    echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
     
    3333
    3434# Some users may set the above line manually
    35 if [ "$javacpath" == "" ]; then
     35if [ "x$javacpath" = "x" ]; then
    3636
    3737    # If it is set, use the JAVA_HOME environment variable
    38     if [ "$JAVA_HOME" != "" ]; then
     38    if [ "x$JAVA_HOME" != "x" ]; then
    3939    javacpath="$JAVA_HOME/bin/javac"
    4040
     
    4646
    4747# Check that a Javac executable has been found
    48 if [ "$glilang" == "es" ]; then
     48if [ "$glilang" = "es" ]; then
    4949    echo "Revisando Javac: $javacpath"
    50 elif [ "$glilang" == "fr" ]; then
     50elif [ "$glilang" = "fr" ]; then
    5151    echo "Vérification de Javac: $javacpath"
    52 elif [ "$glilang" == "ru" ]; then
     52elif [ "$glilang" = "ru" ]; then
    5353    echo "ðÒÏ×ÅÒËÁ Javac: $javacpath"
    5454else
     
    5757if [ ! -x "$javacpath" ]; then
    5858    echo
    59     if [ "$glilang" == "es" ]; then
     59    if [ "$glilang" = "es" ]; then
    6060    echo "No se pudo localizar una versión apropiada de Javac."
    6161    echo "Por favor instale una nueva versión del Kit de Desarrollo de"
    6262    echo "Software Java (versión 1.4 o posterior) y ejecute nuevamente"
    6363    echo "este guión."
    64     elif [ "$glilang" == "fr" ]; then
     64    elif [ "$glilang" = "fr" ]; then
    6565    echo "Une version appropriée de Javac n'a pas pu être localisée."
    6666    echo "Veuillez installer une nouvelle version de Java SDK (version 1.4 ou"
    6767    echo "plus récente) et redémarrez ce script."
    68     elif [ "$glilang" == "ru" ]; then
     68    elif [ "$glilang" = "ru" ]; then
    6969    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javac."
    7070    echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ"
     
    8383if [ ! "x$*" = "x" ] ; then
    8484    echo
    85     if [ "$glilang" == "es" ]; then
     85    if [ "$glilang" = "es" ]; then
    8686    echo "Compilando $* y clases dependientes..."
    87     elif [ "$glilang" == "fr" ]; then
     87    elif [ "$glilang" = "fr" ]; then
    8888    echo "Compilation de $* et des classes dépendantes,,,"
    89     elif [ "$glilang" == "ru" ]; then
     89    elif [ "$glilang" = "ru" ]; then
    9090    echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ $* É ÚÁ×ÉÓÉÍÙÅ ËÌÁÓÓÙ..."
    9191    else
     
    9595    $javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar $*
    9696
    97     if [ "$glilang" == "es" ]; then
     97    if [ "$glilang" = "es" ]; then
    9898    echo "¡Hecho!"
    99     elif [ "$glilang" == "fr" ]; then
     99    elif [ "$glilang" = "fr" ]; then
    100100    echo "Terminé!"
    101     elif [ "$glilang" == "ru" ]; then
     101    elif [ "$glilang" = "ru" ]; then
    102102    echo "÷ÙÐÏÌÎÅÎÏ!"
    103103    else
     
    112112./clean.sh
    113113
    114 if [ "$glilang" == "es" ]; then
     114if [ "$glilang" = "es" ]; then
    115115    echo "Compilando la Interfaz de la Biblioteca Digital Greenstone..."
    116 elif [ "$glilang" == "fr" ]; then
     116elif [ "$glilang" = "fr" ]; then
    117117    echo "Compilation de Greenstone Librarian Interface,,,"
    118 elif [ "$glilang" == "ru" ]; then
     118elif [ "$glilang" = "ru" ]; then
    119119    echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone..."
    120120else
     
    132132$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar src/org/greenstone/gatherer/util/Unzip.java
    133133
    134 if [ "$glilang" == "es" ]; then
     134if [ "$glilang" = "es" ]; then
    135135    echo "¡Hecho!"
    136 elif [ "$glilang" == "fr" ]; then
     136elif [ "$glilang" = "fr" ]; then
    137137    echo "Terminé!"
    138 elif [ "$glilang" == "ru" ]; then
     138elif [ "$glilang" = "ru" ]; then
    139139    echo "÷ÙÐÏÌÎÅÎÏ!"
    140140else
  • trunk/gli/makejar.sh

    r11801 r12287  
    66thisdir=`pwd`
    77if [ ! -f "${thisdir}/makejar.sh" ]; then
    8     if [ "$glilang" == "es" ]; then
     8    if [ "$glilang" = "es" ]; then
    99        echo "Este guión deberá ejecutarse desde el directorio en el que reside."
    10     elif [ "$glilang" == "fr" ]; then
     10    elif [ "$glilang" = "fr" ]; then
    1111    echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve."
    12     elif [ "$glilang" == "ru" ]; then
     12    elif [ "$glilang" = "ru" ]; then
    1313    echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ"
    1414    else
     
    2121if [ ! -f "classes/org/greenstone/gatherer/GathererProg.class" ]; then
    2222    echo
    23     if [ "$glilang" == "es" ]; then
     23    if [ "$glilang" = "es" ]; then
    2424    echo "Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone"
    2525    echo "(por medio de makegli.sh) antes de ejecutar este guión."
    26     elif [ "$glilang" == "fr" ]; then
     26    elif [ "$glilang" = "fr" ]; then
    2727    echo "Vous devez compiler le Greenstone Interface (en utilisant makegli.sh)"
    2828    echo "avant d'exécuter ce script."
    29     elif [ "$glilang" == "ru" ]; then
     29    elif [ "$glilang" = "ru" ]; then
    3030    echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone"
    3131    echo "(ÉÓÐÏÌØÚÕÑ makegli.sh) ÐÅÒÅÄ ××ÏÄÏÍ ÜÔÏÇÏ ÓËÒÉÐÔÁ"
     
    8080
    8181# ---- Make signed JAR file for the applet, if desired ----
    82 if [ "$1" == "-sign" ]; then
     82if [ "$1" = "-sign" ]; then
    8383    rm -f SignedGatherer.jar
    8484    echo "greenstone" | jarsigner -keystore .greenstonestore -signedjar SignedGatherer.jar GLI.jar privateKey 2> /dev/null
Note: See TracChangeset for help on using the changeset viewer.