source: main/tags/2.63/gli/makegli.sh@ 33212

Last change on this file since 33212 was 10729, checked in by mdewsnip, 19 years ago

No longer compiles Zipup.java (no longer exists).

  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
File size: 5.5 KB
Line 
1#!/bin/sh
2glilang=en
3
4echo
5if [ "$glilang" == "es" ]; then
6 echo "Interfaz de la Biblioteca Digital Greenstone (Greenstone Librarian Interface - GLI)"
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 [ "$glilang" == "fr" ]; then
12 echo "Interface du Bibliothécaire Greenstone (Greenstone Librarian Interface - GLI)"
13 echo "Copyright (C) 2005, 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"
16elif [ "$glilang" == "ru" ]; then
17 echo "âÉÂÌÉÏÔÅÞÎÙÊ ÉÎÔÅÒÆÅÊÓ Greenstone (Greenstone Librarian Interface - GLI)"
18 echo "Copyright (C) 2005, New Zealand Digital Library Project, University Of Waikato"
19 echo "âéç ÎÅ ÄÁÅÔ áâóïìàôîï îéëáëéè çáòáîôéê; ÄÅÔÁÌÉ ÓÍ. × ÔÅËÓÔÅ LICENSE.TXT"
20 echo "üÔÏ - Ó×ÏÂÏÄÎÏ ÒÁÓÐÒÏÓÔÒÁÎÑÅÍÏÅ ÐÒÏÇÒÁÍÍÎÏÅ ÏÂÅÓÐÅÞÅÎÉÅ É ÷Ù ÍÏÖÅÔÅ ÒÁÓÐÒÏÓÔÒÁÎÑÔØ ÅÇÏ"
21else
22 echo "Greenstone Librarian Interface (GLI)"
23 echo "Copyright (C) 2005, 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"
26fi
27echo
28
29## -------- Compile the Greenstone Librarian Interface --------
30
31## ---- Check Javac exists ----
32javacpath=
33
34# Some users may set the above line manually
35if [ "$javacpath" == "" ]; then
36
37 # If it is set, use the JAVA_HOME environment variable
38 if [ "$JAVA_HOME" != "" ]; then
39 javacpath="$JAVA_HOME/bin/javac"
40
41 # Check if Javac is on the search path
42 else
43 javacpath=`which javac 2> /dev/null`
44 fi
45fi
46
47# Check that a Javac executable has been found
48if [ "$glilang" == "es" ]; then
49 echo "Revisando Javac: $javacpath"
50elif [ "$glilang" == "fr" ]; then
51 echo "Vérification de Javac: $javacpath"
52elif [ "$glilang" == "ru" ]; then
53 echo "ðÒÏ×ÅÒËÁ Javac: $javacpath"
54else
55 echo "Checking Javac: $javacpath"
56fi
57if [ ! -x "$javacpath" ]; then
58 echo
59 if [ "$glilang" == "es" ]; then
60 echo "No se pudo localizar una versión apropiada de Javac."
61 echo "Por favor instale una nueva versión del Kit de Desarrollo de"
62 echo "Software Java (versión 1.4 o posterior) y ejecute nuevamente"
63 echo "este guión."
64 elif [ "$glilang" == "fr" ]; then
65 echo "Une version appropriée de Javac n'a pas pu être localisée."
66 echo "Veuillez installer une nouvelle version de Java SDK (version 1.4 ou"
67 echo "plus récente) et redémarrez ce script."
68 elif [ "$glilang" == "ru" ]; then
69 echo "îÅ ÕÄÁÌÏÓØ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÎÁÈÏÖÄÅÎÉÅ ÓÏÏÔ×ÅÔÓÔ×ÕÀÝÅÊ ×ÅÒÓÉÉ Javac."
70 echo "ðÏÖÁÌÕÊÓÔÁ, ÕÓÔÁÎÏ×ÉÔÅ ÎÏ×ÕÀ ×ÅÒÓÉÀ Java SDK (×ÅÒÓÉÀ 1.4 ÉÌÉ ÂÏÌÅÅ"
71 echo "ÎÏ×ÕÀ) É ÐÅÒÅÕÓÔÁÎÏ×ÉÔÅ ÜÔÏÔ ÓËÒÉÐÔ."
72 else
73 echo "Failed to locate an appropriate version of Javac. You must install a"
74 echo "Java Development Kit (version 1.4 or greater) before compiling the"
75 echo "Greenstone Librarian Interface."
76 fi
77 exit 1
78fi
79
80## ---- Compile the GLI ----
81
82# If a file has been specified at the command-line, just compile that file
83if [ ! "x$*" = "x" ] ; then
84 echo
85 if [ "$glilang" == "es" ]; then
86 echo "Compilando $* y clases dependientes..."
87 elif [ "$glilang" == "fr" ]; then
88 echo "Compilation de $* et des classes dépendantes,,,"
89 elif [ "$glilang" == "ru" ]; then
90 echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ $* É ÚÁ×ÉÓÉÍÙÅ ËÌÁÓÓÙ..."
91 else
92 echo "Compiling $* and dependent classes..."
93 fi
94
95 $javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar $*
96
97 if [ "$glilang" == "es" ]; then
98 echo "¡Hecho!"
99 elif [ "$glilang" == "fr" ]; then
100 echo "Terminé!"
101 elif [ "$glilang" == "ru" ]; then
102 echo "÷ÙÐÏÌÎÅÎÏ!"
103 else
104 echo "Done!"
105 fi
106 exit 0
107fi
108
109# Otherwise compile the lot...
110
111# Remove any existing class files first
112./clean.sh
113
114if [ "$glilang" == "es" ]; then
115 echo "Compilando la Interfaz de la Biblioteca Digital Greenstone..."
116elif [ "$glilang" == "fr" ]; then
117 echo "Compilation de Greenstone Librarian Interface,,,"
118elif [ "$glilang" == "ru" ]; then
119 echo "ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ ÂÉÂÌÉÏÔÅÞÎÏÇÏ ÉÎÔÅÒÆÅÊÓÁ Greenstone..."
120else
121 echo "Compiling the Greenstone Librarian Interface..."
122fi
123
124# Compile the GLI
125$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar src/org/greenstone/gatherer/GathererProg.java
126$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar src/org/greenstone/gatherer/GathererApplet.java
127
128# Compile the GEMS
129$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar src/org/greenstone/gatherer/gems/GEMS.java
130
131# Compile the stand-alone programs used by the GLI applet
132$javacpath -deprecation -d classes/ -sourcepath src/ -classpath classes/:lib/apache.jar:lib/qfslib.jar:lib/mail.jar:lib/activation.jar src/org/greenstone/gatherer/util/Unzip.java
133
134if [ "$glilang" == "es" ]; then
135 echo "¡Hecho!"
136elif [ "$glilang" == "fr" ]; then
137 echo "Terminé!"
138elif [ "$glilang" == "ru" ]; then
139 echo "÷ÙÐÏÌÎÅÎÏ!"
140else
141 echo "Done!"
142fi
Note: See TracBrowser for help on using the repository browser.