Changeset 16368

Show
Ignore:
Timestamp:
11.07.2008 17:42:15 (12 years ago)
Author:
ak19
Message:

Client-gli.sh now works for both GS2 and GS3. It also works with client-fli.sh.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • gli/trunk/client-gli.sh

    r12453 r16368  
    22glilang=en 
    33 
     4if [ "x$PROGNAME" = "x" ] ; then 
     5    PROGNAME="Greenstone" 
     6  if [ "$glilang" = "es" ]; then 
     7    PROGFULLNAME="Biblioteca Digital Greenstone" 
     8  elif [ "$glilang" = "fr" ]; then 
     9    PROGFULLNAME="Bibliothécaire Greenstone" 
     10  elif [ "$glilang" = "ru" ]; then 
     11    PROGFULLNAME="ÉÎÔÅÒÆÅÊÓ Greenstone" 
     12  else 
     13    PROGFULLNAME="Greenstone Digital Library" 
     14  fi 
     15  else 
     16    PROGFULLNAME=$PROGNAME 
     17fi 
     18 
     19if [ "x$PROGABBR" = "x" ] ; then 
     20    PROGABBR="GLI" 
     21fi 
     22 
     23if [ "x$PROGNAME_EN" = "x" ] ; then 
     24    PROGNAME_EN="Greenstone Librarian Interface" 
     25fi 
     26 
     27 
    428echo 
    529if [ "$glilang" = "es" ]; then 
    6     echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)" 
     30    echo "Interfaz de la $PROGFULLNAME ($PROGNAME_EN - $PROGABBR)" 
    731    echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato" 
    8     echo "La Interfaz de la Biblioteca Digital Greenstone NO INCLUYE ABSOLUTAMENTE NINGUNA GARANTÍA." 
     32    echo "La Interfaz de la $PROGNAME NO INCLUYE ABSOLUTAMENTE NINGUNA GARANTÍA." 
    933    echo "Para mayor información vea los términos de la licencia en LICENSE.txt" 
    1034    echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita" 
    1135elif [ "$glilang" = "fr" ]; then 
    12     echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)" 
     36    echo "Interface du $PROGFULLNAME ($PROGNAME_EN - $PROGABBR)" 
    1337    echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato" 
    14     echo "GLI est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt" 
     38    echo "$PROGABBR est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt" 
    1539    echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer" 
    1640elif [ "$glilang" = "ru" ]; then 
    17     echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)" 
     41    echo "âÉÂÌÉÏÔÅÞÎÙÊ $PROGFULLNAME ($PROGNAME_EN - $PROGABBR)" 
    1842    echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato" 
    1943    echo "âéç ÎÅ ÄÁÅÔ áâóïìàôîï îéëáëéè çáòáîôéê; ÄÅÔÁÌÉ ÓÍ. × ÔÅËÓÔÅ LICENSE.TXT" 
    2044    echo "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ" 
    2145else 
    22     echo "Greenstone Librarian Interface (GLI)" 
     46    echo "$PROGNAME Librarian Interface ($PROGABBR)" 
    2347    echo "Copyright (C) 2006, New Zealand Digital Library Project, University Of Waikato" 
    24     echo "GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt" 
     48    echo "$PROGABBR comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt" 
    2549    echo "This is free software, and you are welcome to redistribute it" 
    2650fi 
     
    76100    echo "No se pudo localizar una versión apropiada de Java. Usted deberá " 
    77101    echo "instalar un Ambiente de Ejecución Java (versión 1.4 o superior) " 
    78     echo "antes de correr la Interfaz de la Biblioteca Digital Greenstone." 
     102    echo "antes de correr la Interfaz de la $PROGFULLNAME                    ." 
    79103    elif [ "$glilang" = "fr" ]; then 
    80104    echo "Une version adéquate de Java n'a pas pu être localisée." 
    81105    echo "Vous devez installer un Java Runtime Environment (version 1.4 ou" 
    82     echo "supérieur) avant de démarrer Greenstone Librarian Interface." 
     106    echo "supérieur) avant de démarrer $PROGNAME Librarian Interface." 
    83107    elif [ "$glilang" = "ru" ]; then 
    84108    echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Java." 
    85109    echo "÷Ù ÄÏÌÖÎÙ ÕÓÔÁÎÏ×ÉÔØ Java Runtime Environment (×ÅÒÓÉÀ 1.4 ÉÌÉ ×ÙÛÅ)" 
    86     echo "ÐÅÒÅÄ ××ÏÄÏÍ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone." 
     110    echo "ÐÅÒÅÄ ××ÏÄÏÍ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ $PROGNAME." 
    87111    else 
    88112    echo "Failed to locate an appropriate version of Java. You must install a" 
    89113    echo "Java Runtime Environment (version 1.4 or greater) before running the" 
    90     echo "Greenstone Librarian Interface." 
     114    echo "$PROGNAME Librarian Interface." 
    91115    fi 
    92116    exit 1 
     
    126150    echo 
    127151    if [ "$glilang" = "es" ]; then 
    128     echo "Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone" 
     152    echo "Usted necesita compilar la Interfaz de la $PROGFULLNAME" 
    129153    echo "(por medio de makegli.sh) antes de ejecutar este guión." 
    130154    elif [ "$glilang" = "fr" ]; then 
    131     echo "Vous devez compiler le Greenstone Interface (en utilisant makegli.sh)" 
     155    echo "Vous devez compiler le $PROGNAME Interface (en utilisant makegli.sh)" 
    132156    echo "avant d'exécuter ce script." 
    133157    elif [ "$glilang" = "ru" ]; then 
    134     echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone" 
     158    echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ $PROGNAME" 
    135159    echo "(ÉÓÐÏÌØÚÕÑ makegli.sh) ÐÅÒÅÄ ××ÏÄÏÍ ÜÔÏÇÏ ÓËÒÉÐÔÁ" 
    136160    else 
    137     echo "You need to compile the Greenstone Librarian Interface (using makegli.sh)" 
     161    echo "You need to compile the $PROGNAME Librarian Interface (using makegli.sh)" 
    138162    echo "before running this script." 
    139163    fi 
     
    145169echo 
    146170if [ "$glilang" = "es" ]; then 
    147     echo "Ejecutando la Interfaz de la Biblioteca Digital Greenstone..." 
     171    echo "Ejecutando la Interfaz de la $PROGFULLNAME..." 
    148172elif [ "$glilang" = "fr" ]; then 
    149     echo "Exécution de Greenstone Librarian Interface" 
     173    echo "Exécution de $PROGNAME Librarian Interface" 
    150174elif [ "$glilang" = "ru" ]; then 
    151     echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..." 
     175    echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ $PROGNAME..." 
    152176else 
    153     echo "Running the Greenstone Librarian Interface..." 
     177    echo "Running the $PROGNAME Librarian Interface..." 
    154178fi 
    155179 
     
    162186# -Xloggc:<file>   Write garbage collection log 
    163187 
    164 $javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $* 
     188# GS2 only requires -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar. GS3 requires more but it doesn't conflict with GS2: 
     189$javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/commons-codec-1.3.jar:lib/commons-httpclient-3.1-rc1.jar:lib/commons-logging-1.1.jar org.greenstone.gatherer.GathererProg -use_remote_greenstone $* 
    165190 
    166191if [ "$glilang" = "es" ]; then