source: trunk/script/expeditee@ 554

Last change on this file since 554 was 554, checked in by davidb, 11 years ago

Russian for 'Browser' added

  • Property svn:executable set to *
File size: 5.0 KB
Line 
1#!/bin/bash
2
3if [ ! -z $explang ] ; then
4 explang=en
5fi
6
7# Our French and Spanish strings are in 'ISO-8859-1' (Latin 1) encoding;
8# Russian is the Cyrillic alphabet encoding, 'KOI8-R'
9
10if [ "x$PROGNAME" = "x" ] ; then
11 if [ "$explang" = "es" ]; then
12 PROGNAME="Navegador Expeditee"
13 elif [ "$explang" = "fr" ]; then
14 PROGNAME="Navigateur Expeditee"
15 elif [ "$explang" = "ru" ]; then
16 PROGNAME="âÒÁÕÚÅÒ Expeditee"
17 else
18 PROGNAME="Expeditee Browser"
19 fi
20fi
21
22if [ "x$PROGABBR" = "x" ] ; then
23 PROGABBR="Expeditee"
24fi
25
26if [ "x$PROGNAME_EN" = "x" ] ; then
27 PROGNAME_EN="Expeditee Browser"
28fi
29
30if [ "x$EXPMODE" = "x" ] ; then
31 EXPMODE="local"
32fi
33
34echo
35if [ "$explang" = "es" ]; then
36 echo "Interfaz de la $PROGNAME ($PROGNAME_EN - $PROGABBR)"
37 echo "Copyright (C) 2013, New Zealand Digital Library Project, University Of Waikato"
38 echo "La Interfaz de la $PROGNAME NO INCLUYE ABSOLUTAMENTE NINGUNA GARANTÍA."
39 echo "Para mayor información vea los términos de la licencia en LICENSE.txt"
40 echo "Este es un software abierto, por lo que lo invitamos a que lo distribuya de forma gratuita"
41elif [ "$explang" = "fr" ]; then
42 echo "Interface du $PROGNAME ($PROGNAME_EN - $PROGABBR)"
43 echo "Copyright (C) 2013, New Zealand Digital Library Project, University Of Waikato"
44 echo "$PROGABBR est fourni sans AUCUNE GARANTIE; pour des détails, voir LICENSE.txt"
45 echo "Ceci est un logiciel libre, et vous êtes invité à le redistribuer"
46elif [ "$explang" = "ru" ]; then
47 echo "âÉÂÌÉÏÔÅÞÎÙÊ $PROGNAME ($PROGNAME_EN - $PROGABBR)"
48 echo "Copyright (C) 2013, New Zealand Digital Library Project, University Of Waikato"
49 echo "âéç ÎÅ ÄÁÅÔ áâóïìàôîï îéëáëéè çáòáîôéê; ÄÅÔÁÌÉ ÓÍ. × ÔÅËÓÔÅ LICENSE.TXT"
50 echo "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ"
51else
52 echo "$PROGNAME ($PROGABBR)"
53 echo "Copyright (C) 2013, New Zealand Digital Library Project, University Of Waikato"
54 echo "$PROGABBR comes with ABSOLUTELY NO WARRANTY; for details see LICENSE.txt"
55 echo "This is free software, and you are welcome to redistribute it"
56fi
57echo
58
59## -------- Run the Expeditee Browser --------
60# This script is designed to be run from its own directory (instead of whichever directory it may be called from)
61# => Work out where that is, and 'cd' there
62thisdir="`dirname \"$0\"`"
63thisdir="`cd \"$thisdir\" && pwd`"
64cd "$thisdir"
65
66
67## ---- Determine EXPEDITEE_HOME ----
68# need to source a script in order to inherit the env vars it has set
69# Exit on error code (non-zero)
70exit_status=0
71#source ./findexpeditee.sh
72#exit_status=$?
73#if [ "$exit_status" -eq 1 ]; then
74# exit 1;
75#fi
76
77## ---- Check Java ----
78# call the script with source, so that we have the variables it sets ($javapath)
79#exit_status=0
80#source ./findjava.sh "$explang" "$PROGNAME"
81#exit_status=$?
82#if [ "$exit_status" -eq 1 ]; then
83# exit 1;
84#fi
85
86## ---- Finally, run Expeditee ----
87if [ "$explang" = "es" ]; then
88 echo "Ejecutando la Interfaz de la $PROGNAME..."
89elif [ "$explang" = "fr" ]; then
90 echo "Exécution de $PROGNAME..."
91elif [ "$explang" = "ru" ]; then
92 echo "ôÅËÕÝÉÊ ÂÉÂÌÉÏÔÅÞÎÙÊ $PROGNAME..."
93else
94 echo "Running the $PROGNAME..."
95fi
96
97# basic_command is the cmd string to execution is
98# basic_command="$javapath -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/rsyntaxtextarea.jar org.greenstone.gatherer.GathererProg"
99
100
101# Other arguments you can provide to GLI to work around memory limitations, or debug
102# -Xms<number>M To set minimum memory (by default 32MB)
103# -Xmx<number>M To set maximum memory (by default the nearest 2^n to the total remaining physical memory)
104# -verbose:gc To set garbage collection messages
105# -Xincgc For incremental garbage collection (significantly slows performance)
106# -Xprof Function call profiling
107# -Xloggc:<file> Write garbage collection log
108
109# -Xdock:name To set the name of the app in the MacOS Dock bar
110# -Xdock:icon Path to the MacOS Doc icon (not necessary for GS)
111
112
113custom_vm_args=""
114if [ "$EXPOS" = "darwin" ]; then
115 custom_vm_args="-Xdock:name=$PROGABBR"
116fi
117
118#"$javapath" -Xmx128M -classpath classes/:GLI.jar:lib/apache.jar:lib/qfslib.jar:lib/rsyntaxtextarea.jar $custom_vm_args org.greenstone.gatherer.GathererProg -gsdl "$GSDLHOME" -gsdlos $GSDLOS -gsdl3 "$GSDL3HOME" -gsdl3src "$GSDL3SRCHOME" $*
119
120
121
122jars='jars/JEP.jar:jars/JFreeCharts.jar:jars/activation.jar:jars/cobra.jar:jars/ext:jars/iText-2.1.3.jar:jars/jazzy-core.jar:jars/jcommon-1.0.13.jar:jars/js.jar:jars/lobo-pub.jar:jars/lobo.jar:jars/mail.jar:jars/xercesImpl.jar'
123
124jars="$jars:releases/Expeditee.jar"
125
126cygpath 2>/dev/null
127if [ $? != 0 ] ; then
128 jars=`cygpath -wp "$jars"`
129fi
130
131#java -classpath "$jars" org.expeditee.gui.Browser $*
132
133cd "$EXPEDITEE_HOME"
134java -classpath releases\\Expeditee.jar org.expeditee.gui.Browser $*
135
136
137
138if [ "$explang" = "es" ]; then
139 echo "Hecho."
140elif [ "$explang" = "fr" ]; then
141 echo "Terminé."
142elif [ "$explang" = "ru" ]; then
143 echo "÷ÙÐÏÌÎÅÎÏ."
144else
145 echo "Done."
146fi
Note: See TracBrowser for help on using the repository browser.