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