1 | #!/bin/sh
|
---|
2 | gailang=en
|
---|
3 |
|
---|
4 | echo
|
---|
5 | if [ "$gailang" == "es" ]; then
|
---|
6 | echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Administration tool Interface - GAI)"
|
---|
7 | echo "Copyright (C) 2005, 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 [ "$gailang" == "fr" ]; then
|
---|
12 | echo "Interface du Bibliothécaire Greenstone (Greenstone Administration tool Interface - GAI)"
|
---|
13 | echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
|
---|
14 | echo "GAI 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 [ "$gailang" == "ru" ]; then
|
---|
17 | echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Administration tool Interface - GAI)"
|
---|
18 | echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
|
---|
19 | echo "âéç ÎÅ ÄÁÅÔ áâóïìàôîï îéëáëéè çáòáîôéê; ÄÅÔÁÌÉ ÓÍ. × ÔÅËÓÔÅ LICENSE.TXT"
|
---|
20 | echo "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ"
|
---|
21 | else
|
---|
22 | echo "Greenstone Administration tool Interface (GAI)"
|
---|
23 | echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
|
---|
24 | echo "GAI 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 |
|
---|
28 | echo
|
---|
29 |
|
---|
30 | ## -------- Run the Greenstone Administration Tool Interface --------
|
---|
31 |
|
---|
32 | # This script must be run from within the directory in which it lives
|
---|
33 | thisdir=`pwd`
|
---|
34 | if [ ! -f "${thisdir}/gai.sh" ]; then
|
---|
35 | if [ "$gailang" == "es" ]; then
|
---|
36 | echo "Este guión deberá ejecutarse desde el directorio en el que reside."
|
---|
37 | elif [ "$gailang" == "fr" ]; then
|
---|
38 | echo "Ce script doit être exécuté à partir du répertoire dans lequel il se trouve."
|
---|
39 | elif [ "$gailang" == "ru" ]; then
|
---|
40 | echo "üÔÏÔ ÓËÒÉÐÔ ÄÏÌÖÅÎ ÂÙÔØ ×ÚÑÔ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÓÐÏÌÏÖÅÎ"
|
---|
41 | else
|
---|
42 | echo "This script must be run from the directory in which it resides."
|
---|
43 | fi
|
---|
44 | exit 1
|
---|
45 | fi
|
---|
46 |
|
---|
47 |
|
---|
48 | ## ---- Determine GSDL3HOME ----
|
---|
49 | gsdl3path=
|
---|
50 |
|
---|
51 | # Some users may set the above line manually
|
---|
52 | if [ "$gsdl3path" == "" ]; then
|
---|
53 | # Check the environment variable first
|
---|
54 | if [ "$GSDL3HOME" != "" ]; then
|
---|
55 | gsdl3path=$GSDL3HOME
|
---|
56 |
|
---|
57 | # If it is not set, assume that the GAI is installed as a subdirectory of Greenstone
|
---|
58 | else
|
---|
59 | pushd .. > /dev/null
|
---|
60 | gsdl3path=`pwd`
|
---|
61 | popd > /dev/null
|
---|
62 | fi
|
---|
63 | fi
|
---|
64 |
|
---|
65 | # Setup Greenstone3, unless it has already been done
|
---|
66 | if [ "$GSDL3HOME" == "" ]; then
|
---|
67 | pushd $gsdl3path > /dev/null
|
---|
68 | source gs3-setup.sh
|
---|
69 | popd > /dev/null
|
---|
70 | fi
|
---|
71 |
|
---|
72 |
|
---|
73 | ## ---- Finally, run the GAI ----
|
---|
74 | ##echo
|
---|
75 | ##if [ "$gailang" == "es" ]; then
|
---|
76 | ## echo "Ejecutando la Interfaz de la Biblioteca Digital Greenstone..."
|
---|
77 | ##elif [ "$gailang" == "fr" ]; then
|
---|
78 | ## echo "Exécution de Greenstone Librarian Interface"
|
---|
79 | ##elif [ "$gailang" == "ru" ]; then
|
---|
80 | ## echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone..."
|
---|
81 | ##else
|
---|
82 | ## echo "Running the Greenstone Librarian Interface..."
|
---|
83 | ##fi
|
---|
84 |
|
---|
85 | # Other arguments you can provide to GLI to work around memory limitations, or debug
|
---|
86 | # -Xms<number>M To set minimum memory (by default 32MB)
|
---|
87 | # -Xmx<number>M To set maximum memory (by default the nearest 2^n to the total remaining physical memory)
|
---|
88 | # -verbose:gc To set garbage collection messages
|
---|
89 | # -Xincgc For incremental garbage collection (significantly slows performance)
|
---|
90 | # -Xprof Function call profiling
|
---|
91 | # -Xloggc:<file> Write garbage collection log
|
---|
92 |
|
---|
93 | # $javapath -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar org.greenstone.gatherer.GathererProg -gsdl $GSDLHOME -wget $wgetpath $*
|
---|
94 |
|
---|
95 | java -cp $CLASSPATH org.greenstone.admin.GAI $GSDL3HOME
|
---|