source: trunk/gsdl3/src/java/org/greenstone/admin/gai.sh@ 10929

Last change on this file since 10929 was 10929, checked in by kjdon, 18 years ago

merged Chi's admin stuff from ant install branch into main repository

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 3.9 KB
Line 
1#!/bin/sh
2gailang=en
3
4echo
5if [ "$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"
11elif [ "$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"
16elif [ "$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 "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ"
21else
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"
26fi
27
28echo
29
30## -------- Run the Greenstone Administration Tool Interface --------
31
32# This script must be run from within the directory in which it lives
33thisdir=`pwd`
34if [ ! -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
45fi
46
47
48## ---- Determine GSDL3HOME ----
49gsdl3path=
50
51# Some users may set the above line manually
52if [ "$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
63fi
64
65# Setup Greenstone3, unless it has already been done
66if [ "$GSDL3HOME" == "" ]; then
67 pushd $gsdl3path > /dev/null
68 source gs3-setup.sh
69 popd > /dev/null
70fi
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
95java -cp $CLASSPATH org.greenstone.admin.GAI $GSDL3HOME
Note: See TracBrowser for help on using the repository browser.