[7328] | 1 | #!/bin/sh
|
---|
| 2 | glilang=en
|
---|
| 3 |
|
---|
| 4 | echo
|
---|
| 5 | if [ "$glilang" == "es" ]; then
|
---|
| 6 | echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)"
|
---|
| 7 | echo "Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 8 | echo "La Interfaz de la Biblioteca Digital Greenstone NO INCLUYE ABSOLUTAMENTE NINGUNA GARANTÍA."
|
---|
| 9 | echo "Para mayor información vea los términos de la licencia en LICENSE.txt"
|
---|
| 10 | echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita"
|
---|
| 11 | elif [ "$glilang" == "fr" ]; then
|
---|
| 12 | echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)"
|
---|
| 13 | echo "Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 14 | echo "GLI est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt"
|
---|
| 15 | echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer"
|
---|
| 16 | elif [ "$glilang" == "ru" ]; then
|
---|
| 17 | echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)"
|
---|
| 18 | echo "Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 19 | echo "âéç ÎÅ ÄÁÅÔ áâóïìàôîï îéëáëéè çáòáîôéê; ÄÅÔÁÌÉ ÓÍ. × ÔÅËÓÔÅ LICENSE.TXT"
|
---|
| 20 | echo "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ"
|
---|
| 21 | else
|
---|
| 22 | echo "Greenstone Librarian Interface (GLI)"
|
---|
| 23 | echo "Copyright (C) 2004, New Zealand Digital Library Project, University Of Waikato"
|
---|
| 24 | echo "GLI comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
|
---|
| 25 | echo "This is free software, and you are welcome to redistribute it"
|
---|
| 26 | fi
|
---|
| 27 | echo
|
---|
| 28 |
|
---|
| 29 | ## -------- Run the Greenstone Librarian Interface --------
|
---|
| 30 |
|
---|
| 31 | # This script must be run from within the directory in which it lives
|
---|
| 32 | thisdir=`pwd`
|
---|
| 33 | if [ ! -f "${thisdir}/gli4gs3.sh" ]; then
|
---|
| 34 | if [ "$glilang" == "es" ]; then
|
---|
| 35 | echo "Este guión deberá ejecutarse desde el directorio en el que reside."
|
---|
| 36 | elif [ "$glilang" == "fr" ]; then
|
---|
| 37 | echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve."
|
---|
| 38 | elif [ "$glilang" == "ru" ]; then
|
---|
| 39 | echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ"
|
---|
| 40 | else
|
---|
| 41 | echo "This script must be run from the directory in which it resides."
|
---|
| 42 | fi
|
---|
| 43 | exit 1
|
---|
| 44 | fi
|
---|
| 45 |
|
---|
| 46 |
|
---|
[8065] | 47 | ## ---- Determine GSDL3HOME ----
|
---|
[7328] | 48 | gsdl3path=
|
---|
| 49 |
|
---|
| 50 | # Some users may set the above line manually
|
---|
| 51 | if [ "$gsdl3path" == "" ]; then
|
---|
| 52 | # Check the environment variable first
|
---|
| 53 | if [ "$GSDL3HOME" != "" ]; then
|
---|
| 54 | gsdl3path=$GSDL3HOME
|
---|
| 55 |
|
---|
[8065] | 56 | # If it is not set, assume that the GLI is installed as a subdirectory of Greenstone 3
|
---|
[7328] | 57 | else
|
---|
| 58 | pushd .. > /dev/null
|
---|
| 59 | gsdl3path=`pwd`
|
---|
| 60 | popd > /dev/null
|
---|
| 61 | fi
|
---|
| 62 | fi
|
---|
| 63 |
|
---|
[8065] | 64 | # Check that the Greenstone 3 installation looks OK
|
---|
[7328] | 65 | if [ "$glilang" == "es" ]; then
|
---|
| 66 | echo "Revisando GSDL3: $gsdl3path"
|
---|
| 67 | elif [ "$glilang" == "fr" ]; then
|
---|
| 68 | echo "Vérification de GSDL3: $gsdl3path"
|
---|
| 69 | elif [ "$glilang" == "ru" ]; then
|
---|
| 70 | echo "ðÒÏ×ÅÒËÁ GSDL3: $gsdl3path"
|
---|
| 71 | else
|
---|
| 72 | echo "Checking GSDL3: $gsdl3path"
|
---|
| 73 | fi
|
---|
| 74 | if [ ! -f "${gsdl3path}/gs3-setup.sh" ] ; then
|
---|
| 75 | echo
|
---|
| 76 | if [ "$glilang" == "es" ]; then
|
---|
[8065] | 77 | echo "No se pudo encontrar la instalación de Greenstone 3 o está incompleta."
|
---|
| 78 | echo "Trate de reinstalar Greenstone 3 y a continuación ejecute nuevamente"
|
---|
| 79 | echo "este guión."
|
---|
| 80 | elif [ "$glilang" == "fr" ]; then
|
---|
| 81 | echo "L'installation de Greenstone 3 est introuvable ou incomplète."
|
---|
| 82 | echo "Essayez de réinstaller Greenstone 3 et exécutez ce script à nouveau."
|
---|
| 83 | elif [ "$glilang" == "ru" ]; then
|
---|
| 84 | echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone 3 ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ."
|
---|
| 85 | echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone 3, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á."
|
---|
| 86 | else
|
---|
| 87 | echo "The Greenstone 3 installation could not be found, or is incomplete."
|
---|
| 88 | echo "Try reinstalling Greenstone 3 then running this script again."
|
---|
| 89 | fi
|
---|
| 90 | exit 1
|
---|
| 91 | fi
|
---|
| 92 |
|
---|
| 93 | # Setup Greenstone 3, unless it has already been done
|
---|
| 94 | if [ "$GSDL3HOME" == "" ]; then
|
---|
| 95 | pushd $gsdl3path > /dev/null
|
---|
| 96 | source gs3-setup.sh
|
---|
| 97 | popd > /dev/null
|
---|
| 98 | fi
|
---|
| 99 |
|
---|
| 100 |
|
---|
| 101 | ## ---- Determine GSDLHOME ----
|
---|
| 102 | gsdlpath=
|
---|
| 103 |
|
---|
| 104 | # Some users may set the above line manually
|
---|
| 105 | if [ "$gsdlpath" == "" ]; then
|
---|
| 106 | # Check the environment variable first
|
---|
| 107 | if [ "$GSDLHOME" != "" ]; then
|
---|
| 108 | gsdlpath=$GSDLHOME
|
---|
| 109 |
|
---|
| 110 | # If it is not set, assume that the gs2extra subdirectory of Greenstone 3 exists
|
---|
| 111 | else
|
---|
| 112 | gsdlpath=$GSDL3HOME/gs2extra
|
---|
| 113 | fi
|
---|
| 114 | fi
|
---|
| 115 |
|
---|
| 116 | # Check that the Greenstone installation looks OK
|
---|
| 117 | if [ "$glilang" == "es" ]; then
|
---|
| 118 | echo "Revisando GSDL: $gsdlpath"
|
---|
| 119 | elif [ "$glilang" == "fr" ]; then
|
---|
| 120 | echo "Vérification de GSDL: $gsdlpath"
|
---|
| 121 | elif [ "$glilang" == "ru" ]; then
|
---|
| 122 | echo "ðÒÏ×ÅÒËÁ GSDL: $gsdlpath"
|
---|
| 123 | else
|
---|
| 124 | echo "Checking GSDL: $gsdlpath"
|
---|
| 125 | fi
|
---|
| 126 | if [ ! -f "${gsdlpath}/setup.bash" ] ; then
|
---|
| 127 | echo
|
---|
| 128 | if [ "$glilang" == "es" ]; then
|
---|
[7328] | 129 | echo "No se pudo encontrar la instalación de Greenstone o está incompleta."
|
---|
| 130 | echo "Trate de reinstalar Greenstone y a continuación ejecute nuevamente"
|
---|
| 131 | echo "este guión."
|
---|
| 132 | elif [ "$glilang" == "fr" ]; then
|
---|
| 133 | echo "L'installation de Greenstone est introuvable ou incomplète."
|
---|
| 134 | echo "Essayez de réinstaller Greenstone et exécutez ce script à nouveau."
|
---|
| 135 | elif [ "$glilang" == "ru" ]; then
|
---|
| 136 | echo "éÎÓÔÁÌÌÑÃÉÑ Greenstone ÎÅ ÂÙÌÁ ÎÁÊÄÅÎÁ ÉÌÉ ÏÎÁ ÎÅÐÏÌÎÁ."
|
---|
| 137 | echo "ðÏÐÒÏÂÕÊÔÅ ÐÏ×ÔÏÒÎÏ ÕÓÔÁÎÏ×ÉÔØ Greenstone, Á ÚÁÔÅÍ ××ÅÓÔÉ ÜÔÏÔ ÓËÒÉÐÔ ÓÎÏ×Á."
|
---|
| 138 | else
|
---|
| 139 | echo "The Greenstone installation could not be found, or is incomplete."
|
---|
| 140 | echo "Try reinstalling Greenstone then running this script again."
|
---|
| 141 | fi
|
---|
| 142 | exit 1
|
---|
| 143 | fi
|
---|
| 144 |
|
---|
| 145 | # Setup Greenstone, unless it has already been done
|
---|
[8065] | 146 | if [ "$GSDLHOME" == "" ]; then
|
---|
| 147 | pushd $gsdlpath > /dev/null
|
---|
| 148 | source setup.bash
|
---|
[7328] | 149 | popd > /dev/null
|
---|
| 150 | fi
|
---|
| 151 |
|
---|
| 152 |
|
---|
| 153 | ## ---- Check Perl exists ----
|
---|
| 154 | perlpath=
|
---|
| 155 |
|
---|
| 156 | # Some users may set the above line manually
|
---|
| 157 | if [ "$perlpath" == "" ]; then
|
---|
| 158 | # Check if Perl is on the search path
|
---|
| 159 | perlpath=`which perl 2> /dev/null`
|
---|
| 160 | fi
|
---|
| 161 |
|
---|
| 162 | # Check that a Perl executable has been found
|
---|
| 163 | if [ "$glilang" == "es" ]; then
|
---|
| 164 | echo "Revisando Perl: $perlpath"
|
---|
| 165 | elif [ "$glilang" == "fr" ]; then
|
---|
| 166 | echo "Vérification de Perl: $perlpath"
|
---|
| 167 | elif [ "$glilang" == "ru" ]; then
|
---|
| 168 | echo "ðÒÏ×ÅÒËÁ Perl: $perlpath"
|
---|
| 169 | else
|
---|
| 170 | echo "Checking Perl: $perlpath"
|
---|
| 171 | fi
|
---|
| 172 | if [ ! -x "$perlpath" ] ; then
|
---|
| 173 | echo
|
---|
| 174 | if [ "$glilang" == "es" ]; then
|
---|
| 175 | echo "La Interfaz de la Biblioteca Digital Greenstone requiere Perl para "
|
---|
| 176 | echo "poder operar, pero éste no aparece en su sistema. Por favor asegúrese "
|
---|
| 177 | echo "de que Perl está instalado y se encuentra en su ruta de búsqueda. A "
|
---|
| 178 | echo "continuación ejecute nuevamente este guión."
|
---|
| 179 | elif [ "$glilang" == "fr" ]; then
|
---|
| 180 | echo "Greenstone Librarian Interface nécessite perl pour son fonctionnement,"
|
---|
| 181 | echo "mais perl n'a pas pu être détecté dans votre système. Veuillez vous "
|
---|
| 182 | echo "assurer que perl est installé et est spécifié dans votre chemin de "
|
---|
| 183 | echo "recherche, puis redémarrez ce script."
|
---|
| 184 | elif [ "$glilang" == "ru" ]; then
|
---|
| 185 | echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone ÔÒÅÂÕÅÔ Perl, ÞÔÏÂÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ"
|
---|
| 186 | echo "ÒÁÂÏÔÁÔØ, ÎÏ Perl ÎÅ ÂÙÌ × ×ÁÛÅÊ ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ÐÏÄÔ×ÅÒÄÉÔÅ, ÞÔÏ "
|
---|
| 187 | echo "Perl ÕÓÔÁÎÏ×ÌÅÎ É ÎÁÈÏÄÉÔÓÑ ÎÁ ×ÁÛÅÍ ÐÕÔÉ ÐÏÉÓËÁ, ÚÁÔÅÍ ÐÏ×ÔÏÒÎÏ××ÅÄÉÔÅ"
|
---|
| 188 | echo "ÜÔÏÔ ÓËÒÉÐÔ."
|
---|
| 189 | else
|
---|
| 190 | echo "The Greenstone Librarian Interface requires perl in order to operate,"
|
---|
| 191 | echo "but perl could not be detected on your system. Please ensure that perl"
|
---|
| 192 | echo "is installed and is on your search path, then rerun this script."
|
---|
| 193 | fi
|
---|
| 194 | exit 1
|
---|
| 195 | fi
|
---|
| 196 |
|
---|
| 197 |
|
---|
| 198 | ## ---- Check Java exists ----
|
---|
| 199 | javapath=
|
---|
| 200 |
|
---|
| 201 | # Some users may set the above line manually
|
---|
| 202 | if [ "$javapath" == "" ]; then
|
---|
| 203 |
|
---|
| 204 | # If it is set, use the JAVA_HOME environment variable
|
---|
| 205 | if [ "$JAVA_HOME" != "" ]; then
|
---|
| 206 | javapath="$JAVA_HOME/bin/java"
|
---|
| 207 |
|
---|
| 208 | # Check if Java is on the search path
|
---|
| 209 | else
|
---|
| 210 | javapath=`which java 2> /dev/null`
|
---|
| 211 | fi
|
---|
| 212 | fi
|
---|
| 213 |
|
---|
| 214 | # Check that a Java executable has been found
|
---|
| 215 | if [ "$glilang" == "es" ]; then
|
---|
| 216 | echo "Revisando Java: $javapath"
|
---|
| 217 | elif [ "$glilang" == "fr" ]; then
|
---|
| 218 | echo "Vérification de Java: $javapath"
|
---|
| 219 | elif [ "$glilang" == "ru" ]; then
|
---|
| 220 | echo "ðÒÏ×ÅÒËÁ Java: $javapath"
|
---|
| 221 | else
|
---|
| 222 | echo "Checking Java: $javapath"
|
---|
| 223 | fi
|
---|
| 224 | if [ ! -x "$javapath" ]; then
|
---|
| 225 | echo
|
---|
| 226 | if [ "$glilang" == "es" ]; then
|
---|
| 227 | echo "No se pudo localizar una versión apropiada de Java. Usted deberá "
|
---|
| 228 | echo "instalar un Ambiente de Ejecución Java (versión 1.4 o superior) "
|
---|
| 229 | echo "antes de correr la Interfaz de la Biblioteca Digital Greenstone."
|
---|
| 230 | elif [ "$glilang" == "fr" ]; then
|
---|
| 231 | echo "Une version adéquate de Java n'a pas pu être localisée."
|
---|
| 232 | echo "Vous devez installer un Java Runtime Environment (version 1.4 ou"
|
---|
| 233 | echo "supérieur) avant de démarrer Greenstone Librarian Interface."
|
---|
| 234 | elif [ "$glilang" == "ru" ]; then
|
---|
| 235 | echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Java."
|
---|
| 236 | echo "÷Ù ÄÏÌÖÎÙ ÕÓÔÁÎÏ×ÉÔØ Java Runtime Environment (×ÅÒÓÉÀ 1.4 ÉÌÉ ×ÙÛÅ)"
|
---|
| 237 | echo "ÐÅÒÅÄ ××ÏÄÏÍ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone."
|
---|
| 238 | else
|
---|
| 239 | echo "Failed to locate an appropriate version of Java. You must install a"
|
---|
| 240 | echo "Java Runtime Environment (version 1.4 or greater) before running the"
|
---|
| 241 | echo "Greenstone Librarian Interface."
|
---|
| 242 | fi
|
---|
| 243 | exit 1
|
---|
| 244 | fi
|
---|
| 245 |
|
---|
| 246 |
|
---|
| 247 | ## -- Check the version of Java is new enough (1.4.0 or higher) to run the GLI --
|
---|
[8901] | 248 | `$javapath CheckJavaVersion > /dev/null`
|
---|
| 249 | if [ $? -ne 2 ] ; then
|
---|
[7328] | 250 | echo
|
---|
| 251 | if [ "$glilang" == "es" ]; then
|
---|
| 252 | echo "La versión del Ambiente de Ejecución Java (JRE por sus siglas en "
|
---|
| 253 | echo "inglés) que usted tiene instalada es demasiado vieja para ejecutar "
|
---|
| 254 | echo "la Interfaz de la Biblioteca Digital Greenstone. Por favor instale "
|
---|
| 255 | echo "una nueva versión del Ambiente de Ejecución Java (versión 1.4 o "
|
---|
| 256 | echo "posterior) y ejecute nuevamente este guión."
|
---|
| 257 | elif [ "$glilang" == "fr" ]; then
|
---|
| 258 | echo "La version de Java Runtime Environment que vous avez installée est"
|
---|
| 259 | echo "trop vielle pour faire fonctionner Greenstone Librarian Interface."
|
---|
| 260 | echo "Veuillez installer une nouvelle version du JRE (version 1.4 ou plus"
|
---|
| 261 | echo "récente) et redémarrez le script."
|
---|
| 262 | elif [ "$glilang" == "ru" ]; then
|
---|
| 263 | echo "÷ÅÒÓÉÑ Java Runtime Environment, ËÏÔÏÒÕÀ ÷Ù ÕÓÔÁÎÏ×ÉÌÉ, ÏÞÅÎØ ÓÔÁÒÁ,"
|
---|
| 264 | echo "ÞÔÏÂÙ ÕÐÒÁ×ÌÑÔØ ÂÉÂÌÉÏÔÅÞÎÙÍ ÉÎÔÅÒÆÅÊÓÏÍ Greenstone. ðÏÖÁÌÕÊÓÔÁ, "
|
---|
| 265 | echo "ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ JRE (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ ÎÏ×ÕÀ) É"
|
---|
| 266 | echo "ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ"
|
---|
| 267 | else
|
---|
| 268 | echo "The version of the Java Runtime Environment you have installed is too"
|
---|
| 269 | echo "old to run the Greenstone Librarian Interface. Please install a new"
|
---|
| 270 | echo "version of the JRE (version 1.4 or newer) and rerun this script."
|
---|
| 271 | fi
|
---|
| 272 | exit 1
|
---|
| 273 | fi
|
---|
| 274 |
|
---|
[7853] | 275 | ## ---- Set wgetpath manually if you don't want to use the default Greenstone version -----
|
---|
| 276 | wgetpath=
|
---|
| 277 |
|
---|
[7328] | 278 | ## ---- Check that the GLI has been compiled ----
|
---|
[7853] | 279 | if [ ! -f "classes/org/greenstone/gatherer/GathererProg.class" ] && [ ! -f "GLI.jar" ]; then
|
---|
[7328] | 280 | echo
|
---|
| 281 | if [ "$glilang" == "es" ]; then
|
---|
| 282 | echo "Usted necesita compilar la Interfaz de la Biblioteca Digital Greenstone"
|
---|
| 283 | echo "(por medio de makegli.sh) antes de ejecutar este guión."
|
---|
| 284 | elif [ "$glilang" == "fr" ]; then
|
---|
| 285 | echo "Vous devez compiler le Greenstone Interface (en utilisant makegli.sh)"
|
---|
| 286 | echo "avant d'exécuter ce script."
|
---|
| 287 | elif [ "$glilang" == "ru" ]; then
|
---|
| 288 | echo "÷Ù ÄÏÌÖÎÙ ËÏÍÐÉÌÉÒÏ×ÁÔØ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone"
|
---|
| 289 | echo "(ÉÓÐÏÌØÚÕÑ makegli.sh) ÐÅÒÅÄ ××ÏÄÏÍ ÜÔÏÇÏ ÓËÒÉÐÔÁ"
|
---|
| 290 | else
|
---|
| 291 | echo "You need to compile the Greenstone Librarian Interface (using makegli.sh)"
|
---|
| 292 | echo "before running this script."
|
---|
| 293 | fi
|
---|
| 294 | exit 1
|
---|
| 295 | fi
|
---|
| 296 |
|
---|
| 297 | if [ "$1" == "-test" ]; then
|
---|
| 298 | if [ "$glilang" == "es" ]; then
|
---|
| 299 | echo "Clase de prueba: $2"
|
---|
| 300 | echo "Argumentos $*"
|
---|
| 301 | elif [ "$glilang" == "fr" ]; then
|
---|
| 302 | echo "Classe de test: $2"
|
---|
| 303 | echo "Arguments $*"
|
---|
| 304 | elif [ "$glilang" == "ru" ]; then
|
---|
| 305 | echo "éÓÐÙÔÁÔÅÌØÎÙÊ ËÌÁÓÓ: $2"
|
---|
| 306 | echo "ðÁÒÁÍÅÔÒÙ $*"
|
---|
| 307 | else
|
---|
| 308 | echo "Testing class: $2"
|
---|
| 309 | echo "Arguments $*"
|
---|
| 310 | fi
|
---|
[8254] | 311 | $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar $2 $3
|
---|
[7328] | 312 | exit 0
|
---|
| 313 | fi
|
---|
| 314 |
|
---|
| 315 | ## ---- Finally, run the GLI ----
|
---|
| 316 | echo
|
---|
| 317 | if [ "$glilang" == "es" ]; then
|
---|
| 318 | echo "Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
|
---|
| 319 | elif [ "$glilang" == "fr" ]; then
|
---|
| 320 | echo "Exécution de Greenstone Librarian Interface"
|
---|
| 321 | elif [ "$glilang" == "ru" ]; then
|
---|
| 322 | echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
|
---|
| 323 | else
|
---|
| 324 | echo "Running the Greenstone Librarian Interface..."
|
---|
| 325 | fi
|
---|
| 326 |
|
---|
| 327 | # Other arguments you can provide to GLI to work around memory limitations, or debug
|
---|
| 328 | # -Xms<number>M To set minimum memory (by default 32MB)
|
---|
| 329 | # -Xmx<number>M To set maximum memory (by default the nearest 2^n to the total remaining physical memory)
|
---|
| 330 | # -verbose:gc To set garbage collection messages
|
---|
| 331 | # -Xincgc For incremental garbage collection (significantly slows performance)
|
---|
| 332 | # -Xprof Function call profiling
|
---|
| 333 | # -Xloggc:<file> Write garbage collection log
|
---|
| 334 |
|
---|
[8254] | 335 | $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -gsdl3 $GSDL3HOME -wget $wgetpath $*
|
---|
[7328] | 336 |
|
---|
| 337 | if [ "$glilang" == "es" ]; then
|
---|
| 338 | echo "¡Hecho!"
|
---|
| 339 | elif [ "$glilang" == "fr" ]; then
|
---|
| 340 | echo "Terminé!"
|
---|
| 341 | elif [ "$glilang" == "ru" ]; then
|
---|
| 342 | echo "÷ÙÐÏÌÎÅÎÏ!"
|
---|
| 343 | else
|
---|
| 344 | echo "Done!"
|
---|
[8065] | 345 | fi
|
---|