source: tags/gsdl-2_52-distribution/gsdl/Install.sh@ 8390

Last change on this file since 8390 was 8378, checked in by mdewsnip, 20 years ago

Updated the version number for the 2.52 web release.

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 80.8 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5
6# set iscdrom variable to "yes" for a cdrom installation
7iscdrom="yes"
8
9# This string will always be in English so is not translated
10echo "Which version of Greenstone do you want installed: "
11echo "[E]nglish, (F)rench, (R)ussian or (S)panish?"
12printf "%s" "> "
13read gsdllang
14gsdllang=`echo $gsdllang | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15
16
17# ------------------------------------------------------------------------------
18# FRENCH STRINGS
19# ------------------------------------------------------------------------------
20if [ "$gsdllang" == "f" ] || [ "$gsdllang" == "french" ]; then
21
22 gsdllangcode=fr
23
24 itext0="Greeenstone n'a pu être installé"
25
26 itext1="Install.h doit être exécuté à partir du répertoire dans lequel il réside."
27
28 itext2="ERREUR: n'a pu trouver l'emplacement "
29
30 itext3cd="Ce script va installer Greenstone sur votre système. Vous pourriez
31parcourir le document Install.pdf présent dans le repertoire des
32documents de ce CD ROM avant de poursuivre avec l'installation."
33
34 itext3web="Ce script va installer Greenstone sur votre système. Vous pourrier
35télécharger et consulter le Guide d'installeur de Greenstone
36(Install.pdf) avant de poursuivre l'installation."
37
38 itext3="Notez que lorsque l'on vous demande de taper une réponse, appuyer
39sur \"entrer\" sélectionnera le choix par défaut (indiqué entre
40crochets [] à la fin de chaque question). Si vous hésitez sur
41l'option à choisir, choisissez l'option par défaut.
42
43Notez aussi que Install.sh affiche des informations concernant la
44commande exécutée sur votre système sous la forme:
45\"--> Install.sh: [command]\".
46
47Dans cette installation, il est supposé que vous ayez déjà un
48serveur Web installé sur votre système.
49
50Afin de le consulter ultérieurement, le texte affiché lors de
51l'installation, celui ci est enregistré dans un fichier appelé
52INSTALL_RECORD qui sera placé dans le répertoire à partir duquel
53vous avez choisi d'installer Greenstone.
54
55Continuer? [y]"
56
57 itext4="
58Dans quel répertoire voulez-vous installer Greenstone?
59Assurez-vous que ce répertoire est sur une partition avec suffisamment
60d'espace disque pour les options que vous avez l'intention de choisir."
61
62 itext5="
63 * Une installation binaire pour Linux nécessite environ 40Mo."
64
65 itext6="
66 * La compilation du code source de Greenstone nécessite environ 155Mo.
67 * L'installation facultative des collections Greenstone de
68 démonstration peut occuper jusqu'à 200Mo de plus (la taille de
69 chaque collection vous sera indiquée avant l'installation).
70 * La documentation en ligne nécessite 4Mo de plus.
71 * L'option permettant à Greenstone d'exporter des collections
72 \"CD exporting\" nécessite 24Mo de plus.
73Entrez le répertoire d'installation de Greenstone. Un répertoire gsdl
74sera créé dans ce répertoire."
75
76 itext34="
77Entrez le répertoire existant cgi pour les fichiers exécutables
78[/usr/local/apache/cgi-bin]"
79
80 itext59="
81Cette installation nécessite l'utilitaire Gnu 'make' qui n'a pu être trouvé
82sur cet ordinateur. Veuillez entrer le chemin d'accès vers Gnu make"
83
84 itextdoccols="
85La collection Greenstone de démonstration a été installée. Souhaitez-vous
86installer d'autres collections à partir du CD-ROM d'installation? [y]"
87
88 itextdec_dls="
89Sous-ensemble de la collection Bibliothèque de Développement (dls-e) - 150MB [y]"
90
91 itextdec_wrdpdf="
92Démonstration MSWord et PDF (wrdpdf-e) - 4MB [y]"
93
94 itextdec_gsarch="
95Collection des Archives de Greenstone (gsarch-e) - 9MB [y]"
96
97 itextdec_cltbib="
98Collection bibliographie (cltbib-e) - 9MB [y]"
99
100 itextdec_cltext="
101Supplément bibliographie (cltext-e) - 1MB [y]"
102
103 itextdec_marc="
104Exemple MARC (MARC-e) - 2MB [y]"
105
106 itextdec_oai="
107Démo OAI (OAI-e) - 19MB [y]"
108
109 itextdec_image="
110Collection d'images simple (image-e) - 1MB [y]"
111
112 itextdec_authen="
113Démonstration de formatage et d'authentification (authen-e) - 12MB [y]"
114
115 itextdec_garish="
116Version Garish de la collection de démonstration (garish) - 12MB [y]"
117
118 itextdec_isis="
119Exemple CDS/ISIS (isis-e) - 2MB [y]"
120
121
122# ------------------------------------------------------------------------------
123# RUSSIAN STRINGS
124# ------------------------------------------------------------------------------
125elif [ "$gsdllang" == "r" ] || [ "$gsdllang" == "russian" ]; then
126
127 gsdllangcode=ru
128
129 itext0="Greenstone ÎÅ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ"
130
131 itext1="Install.sh ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ ÉÚ ÄÉÒÅËÔÏÒÉÉ, × ËÏÔÏÒÏÊ ÏÎ ÒÁÚÍÅÝÁÅÔÓÑ"
132
133 itext2="ïûéâëá: îÅ×ÏÚÍÏÖÎÏ ÏÐÒÅÄÅÌÉÔØ ÍÅÓÔÏÐÏÌÏÖÅÎÉÅ"
134
135 itext3cd="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone × ÷ÁÛÕ ÓÉÓÔÅÍÕ. ðÒÉ ÖÅÌÁÎÉÉ ÷Ù ÍÏÖÅÔÅ
136ÐÒÏÓÍÏÔÒÅÔØ ÄÏËÕÍÅÎÔ Install.pdf, ËÏÔÏÒÙÊ ÒÁÓÐÏÌÏÖÅÎ × ÄÉÒÅËÔÏÒÉÉ docs
137ÎÁ ÄÁÎÎÏÍ CD-ROM, ÄÏ ÐÒÏÄÏÌÖÅÎÉÑ ÉÎÓÔÁÌÌÑÃÉÉ."
138
139 itext3web="üÔÏÔ ÓËÒÉÐÔ ÕÓÔÁÎÏ×ÉÔ Greenstone ÎÁ ×ÁÛ ËÏÍÐØÀÔÅÒ. ðÒÉ ÖÅÌÁÎÉÉ ÍÏÖÅÔÅ
140ÚÁÇÒÕÚÉÔØ É ÐÒÏÇÌÑÄÅÔØ òÕËÏ×ÏÄÓÔ×Ï ÐÏ ÕÓÔÁÎÏ×ËÅ Greenstone (Install.pdf)
141ÐÅÒÅÄ ÐÒÏÄÏÌÖÅÎÉÅÍ ÕÓÔÁÎÏ×ËÉ."
142
143 itext3="
144úÁÍÅÔØÔÅ, ÞÔÏ ËÏÇÄÁ ÐÏÓÔÕÐÁÅÔ ÐÒÉÇÌÁÛÅÎÉÅ ÎÁ ××ÏÄ, ÎÁÖÁÔÉÅ ËÌÁ×ÉÛÉ
145\"enter\" ×ÙÂÉÒÁÅÔ ÐÏ ÕÍÏÌÞÁÎÉÀ ÚÁÄÁÎÎÏÅ × Ë×ÁÄÒÁÔÎÙÈ ÓËÏÂËÁÈ [] ×
146ËÏÎÃÅ ËÁÖÄÏÇÏ ×ÏÐÒÏÓÁ. åÓÌÉ ×Ù ÎÅ Õ×ÅÒÅÎÙ, ËÁËÏÊ ×ÁÒÉÁÎÔ ×ÙÂÒÁÔØ,
147ÉÓÐÏÌØÚÕÊÔÅ ÔÏÔ, ËÏÔÏÒÙÊ ÄÁÎ ÐÏ ÕÍÏÌÞÁÎÉÀ.
148
149úÁÍÅÔØÔÅ ÔÁËÖÅ, ÞÔÏ Install.sh ×ÙÄÁÅÔ ÎÁ ÐÅÞÁÔØ ÉÎÆÏÒÍÁÃÉÀ ÌÀÂÙÈ
150ËÏÍÁÎÄ, ËÏÔÏÒÙÅ ÐÏÓÔÕÐÁÀÔ × ÷ÁÛÕ ÓÉÓÔÅÍÕ × ÆÏÒÍÅ
151\"--> Install.sh: [command]\".
152
153ðÏ×ÓÀÄÕ ÐÒÅÄÐÏÌÁÇÁÅÔÓÑ, ÞÔÏ ×ÙÐÏÌÎÅÎÎÁÑ ÷ÁÍÉ ÐÒÏÃÅÄÕÒÁ ÉÎÓÔÁÌÌÑÃÉÉ,
154ÕÓÔÁÎÏ×ÉÌÁ ÷ÅÂ-ÓÅÒ×ÅÒ × ÷ÁÛÕ ÓÉÓÔÅÍÕ.
155
156äÌÑ ÐÏÓÌÅÄÕÀÝÉÈ ÓÓÙÌÏË ×ÙÈÏÄ ÄÁÎÎÏÇÏ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÇÏ ÓËÒÉÐÔÁ ÂÕÄÅÔ
157ÚÁÐÉÓÁÎ × ÆÁÊÌÅ, ÎÁÚÙ×ÁÅÍÏÍ INSTALL_RECORD, × ÉÒÅËÔÏÒÉÉ, ËÏÔÏÒÕÀ ÷Ù
158×ÙÂÒÁÌÉ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ Greenstone.
159
160ðÒÏÄÏÌÖÉÔØ? [y]"
161
162 itext4="
163÷ ËÁËÕÀ ÄÉÒÅËÔÏÒÉÀ ÄÏÌÖÅÎ ÂÙÔØ ÕÓÔÁÎÏ×ÌÅÎ Greenstone? õÄÏÓÔÏ×ÅÒØÔÅÓØ,
164ÞÔÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ ÎÁÈÏÄÉÔÓÑ ÎÁ ÕÞÁÓÔËÅ Ó ÄÏÓÔÁÔÏÞÎÙÍ Ó×ÏÂÏÄÎÙÍ
165ÐÒÏÓÔÒÁÎÓÔ×ÏÍ ÎÁ ÄÉÓËÅ ÄÌÑ ÉÎÓÔÁÌÑÃÉÏÎÎÙÈ ×ÁÒÉÁÎÔÏ×, ËÏÔÏÒÙÅ ÷Ù
166ÎÁÍÅÒÅ×ÁÅÔÅÓØ ×ÙÂÒÁÔØ."
167
168 itext5="
169 * éÎÓÔÁÌÌÑÃÉÑ ÂÉÎÁÒÎÏÇÏ Linux ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 40 Mb."
170
171 itext6="
172 * ëÏÍÐÉÌÑÃÉÑ Greenstone ÉÚ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ
173 155 Mb.
174 * ðÒÏÉÚ×ÏÌØÎÙÅ ÄÅÍÏÎÓÔÒÁÃÉÏÎÎÙÅ ËÏÌÌÅËÃÉÉ Greenstone ÍÏÇÕÔ
175 ÉÓÐÏÌØÚÏ×ÁÔØ ÄÏ 200 Mb (÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÚÎÁÔØ ÒÁÚÍÅÒ ËÁÖÄÏÊ
176 ÉÎÄÉ×ÉÄÕÁÌØÎÏÊ ËÏÌÌÅËÃÉÉ ÐÅÒÅÄ ÔÅÍ, ËÁË ÉÎÓÔÁÌÌÉÒÏ×ÁÔØ ÅÅ).
177 * ïÎÌÁÊÎÏ×ÁÑ ÄÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÄÁÌØÎÅÊÛÉÈ 4 Mb.
178 * æÕÎËÃÉÑ ÄÏÓÔÕÐÎÏÓÔÉ Greenstone \"CD exporting\" ÔÒÅÂÕÅÔ ÅÝÅ 24 Mb.
179÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ ÄÌÑ ÉÎÓÔÁÌÌÑÃÉÉ × ÎÅÅ Greenstone. äÉÒÅËÔÏÒÉÑ gsdl
180ÂÕÄÅÔ ÓÏÚÄÁÎÁ × ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ."
181
182 itext34="
183÷×ÅÄÉÔÅ ÓÕÝÅÓÔ×ÕÀÝÕÀ cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ [/usr/local/apache/cgi-bin]"
184
185 itext59="
186üÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÔÒÅÂÕÅÔ GNU, ËÏÔÏÒÙÊ ÎÅ ÂÙÌ ÏÂÎÁÒÕÖÅÎ × ÷ÁÛÅÊ
187ÓÉÓÔÅÍÅ. ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÐÕÔØ ÄÌÑ ×ÙÐÏÌÎÅÎÉÑ GNU."
188
189 itextdoccols="
190äÅÍÏÎÓÔÒÁÃÉÏÎÎÁÑ ËÏÌÌÅËÃÉÑ Greenstone ÂÙÌÁ ÕÓÔÁÎÏ×ÌÅÎÁ. èÏÔÉÔÅ ÌÉ
191÷Ù ÕÓÔÁÎÏ×ÉÔØ ÌÀÂÙÅ ÄÒÕÇÉÅ ËÏÌÌÅËÃÉÉ ÉÚ ÉÎÓÔÁÌÑÃÉÏÎÎÏÇÏ CD-ROM? [y]"
192
193 itextdec_dls="
194óÕÂËÏÌÌÅËÃÉÑ âÉÂÌÉÏÔÅËÉ ÒÁÚ×ÉÔÉÑ (dls-e) - 150MB [y]"
195
196 itextdec_wrdpdf="
197äÅÍÏÎÓÔÒÁÃÉÑ MSWord É PDF (wrdpdf-e) - 4MB [y]"
198
199 itextdec_gsarch="
200ëÏÌÌÅËÃÉÑ ÁÒÈÉ×Ï× Greenstone (gsarch-e) - 9MB [y]"
201
202 itextdec_cltbib="
203âÉÂÌÉÏÇÒÁÆÉÞÅÓËÁÑ ËÏÌÌÅËÃÉÑ (cltbib-e) - 9MB [y]"
204
205 itextdec_cltext="
206ðÒÉÌÏÖÅÎÉÅ ÂÉÂÌÉÏÇÒÁÆÉÉ (cltext-e) - 1MB [y]"
207
208 itextdec_marc="
209ðÒÉÍÅÒ MARC (MARC-e) - 2MB [y]"
210
211 itextdec_oai="
212äÅÍÏÎÓÔÒÁÃÉ-ÏÎÎÁÑ ËÏÌÌÅËÃÉÑ OAI (OAI-e) - 19MB [y]"
213
214 itextdec_image="
215ðÒÏÓÔÁÑ ËÏÌÌÅËÃÉÑ ÉÚÏÂÒÁÖÅÎÉÊ (image-e) - 1MB [y]"
216
217 itextdec_authen="
218äÅÍÏÎÓÔÒÁÃÉÑ ÆÏÒÍÁÔÉÒÏ×Á-ÎÉÑ É ÁÕÔÅÎÔÉÆÉËÁÃÉÉ (authen-e) - 12MB [y]"
219
220 itextdec_garish="
221òÅÚËÁÑ ×ÅÒÓÉÑ ÄÅÍÏÎÓÔÒÁÃÉÏÎ-ÎÏÊ ËÏÌÌÅËÃÉÉ (garish) - 12MB [y]"
222
223 itextdec_isis="
224ðÒÉÍÅÒ CDS/ISIS (isis-e) - 2MB [y]"
225
226
227# ------------------------------------------------------------------------------
228# SPANISH STRINGS
229# ------------------------------------------------------------------------------
230elif [ "$gsdllang" == "s" ] || [ "$gsdllang" == "spanish" ]; then
231
232 gsdllangcode=es
233
234 itext0="Greenstone no ha sido instalado."
235
236 itext1="Install.sh deberá correrse desde el directorio en el que reside."
237
238 itext2="ERROR: No se pudo localizar "
239
240 itext3cd="Este guión instalará Greenstone en su sistema. Le recomendamos que
241lea el documento install.pdf que reside en el directorio de documentos
242de este CD-ROM antes de continuar con la instalación."
243
244 itext3web="Este programa va a instalar Greenstone en su sistema. Se recomienda
245obtener y revisar la Guía de Instalación de Greenstone (Install.pdf)
246antes de continuar."
247
248 itext3="
249Recuerde que cuando se le pida que ingrese la información, al oprimir
250\"ingresar\" usted seleccionará los ajustes por omisión (que aparecen
251entre corchetes [] al final de cada pregunta). Si no está seguro de
252cuál opción seleccionar utilice los ajustes por omisión.
253
254Recuerde asimismo que Install.sh imprime la información de cualquier
255comando que se ejecute en su sistema en la siguiente forma:
256\"--> Install.sh: [comando]\".
257
258Durante todo el proceso de instalación se asume que usted ya tiene un
259servidor Web instalado en su sistema.
260
261Como referencia para un uso posterior los resultados de este guión de
262instalación se registrarán en un archivo llamado INSTALL_RECORD en el
263directorio en el que usted decidió instalar Greenstone.
264
265¿Desea continuar? [y]"
266
267 itext4="
268¿En qué directorio se instalará Greenstone? Asegúrese de que este
269directorio esté en una partición con suficiente espacio libre en el
270disco para las opciones que usted pretende instalar."
271
272 itext5="
273 * La instalación de un binario Linux requiere aproximadamente 40 MB."
274
275 itext6="
276 * La compilación de Greenstone desde un código fuente requiere
277 aproximadamente 155 MB.
278 * También pueden usarse colecciones muestra opcionales hasta un total
279 de 200 MB (se le indicará el tamaño de cada colección individual
280 antes de instalarla).
281 * La documentación en línea requiere de otros 4 MB.
282 * La función \"exportar a un CD\" de Greenstone requerirá de otros 24 MB.
283Ingrese el directorio para instalar Greenstone. Se creará un directorio
284gsdl en este directorio."
285
286 itext34="
287Ingrese un directorio ejecutable cgi existente [/usr/local/apache/cgi-bin]"
288
289 itext59="Esta instalación requiere una utilería make GNU, el cual podría no
290encontrarse en su sistema. Por favor ingrese la ruta hacia la
291utilería make GNU."
292
293 itextdoccols="
294La colección de muestra Greenstone ha sido instalada. ¿Le gustaría instalar
295alguna otra colección del CD-ROM de instalación? [y]"
296
297 itextdec_dls="
298Subconjunto de la Biblioteca para el Desarrollo (dls-e) - 150MB [y]"
299
300 itextdec_wrdpdf="
301Demostración en MSWord y PDF (wrdpdf-e) - 4MB [y]"
302
303 itextdec_gsarch="
304Colección de Archivos Greenstone (gsarch-e) - 9MB [y]"
305
306 itextdec_cltbib="
307Colección bibliográfica (cltbib-e) - 9MB [y]"
308
309 itextdec_cltext="
310Suplemento bibliográfico (cltext-e) - 1MB [y]"
311
312 itextdec_marc="
313Colección de muestra MARC (MARC-e) - 2MB [y]"
314
315 itextdec_oai="
316Colección de muestra OAI (OAI-e) - 19MB [y]"
317
318 itextdec_image="
319Colección de imágenes sencillas (image-e) - 1MB [y]"
320
321 itextdec_authen="
322Demostración de formateo y autenticación (authen-e) - 12MB [y]"
323
324 itextdec_garish="
325Versión Garish de la colección de muestra (garish) - 12MB [y]"
326
327 itextdec_isis="
328Colección de muestra CDS/ISIS (isis-e) - 2MB [y]"
329
330
331# ------------------------------------------------------------------------------
332# ENGLISH STRINGS
333# ------------------------------------------------------------------------------
334else
335
336 gsdllangcode=en
337
338 itext0="Greenstone was not installed"
339
340 itext1="Install.sh must be run from the directory in which it resides"
341
342 itext2="ERROR: Could not locate "
343
344 itext3cd="This script will install Greenstone on your system. You may want
345to skim through the Install.pdf document that resides in the docs
346directory on this cd-rom before continuing with the installation."
347
348 itext3web="This script will install Greenstone on your system. You may
349want to download and skim through the Greenstone Installer's Guide
350(Install.pdf) before continuing with the installation"
351
352 itext3="
353Note that when prompted for input, hitting \"enter\" will select
354the default (given in square brackets [] at the end of each question).
355If you're unsure which option to select, use the default.
356
357Note also that Install.sh prints out information on any commands
358it runs on your system in the form \"--> Install.sh: [command]\".
359
360It is assumed throughout this installation procedure that you
361have a webserver installed on your system.
362
363For later reference the output of this install script will be
364recorded in a file called INSTALL_RECORD in the directory into
365which you choose to install Greenstone.
366
367Continue? [y]"
368
369 itext4="
370Which directory should Greenstone be installed to?
371Make sure that this directory is on a partition with sufficient
372free disk space for the installation options you intend selecting."
373
374 itext5="
375 * A linux binary installation requires approximately
376 40Mb."
377
378 itext6="
379 * Compiling Greenstone from source code requires
380 approximately 155Mb.
381 * Optional Greenstone demonstration collections may use up
382 to a further 200Mb (you'll be told the size of each individual
383 collection before you install it).
384 * Online documentation requires a further 4Mb.
385 * Enabling Greenstone's \"CD exporting\" function requires a
386 further 24Mb.
387Enter directory to install Greenstone into. A gsdl directory
388will be created in this directory."
389
390 itext34="
391Enter existing cgi executable directory [/usr/local/apache/cgi-bin]"
392
393 itext59="
394This installation requires GNU make which could not be detected
395on your system. Please enter the path to gnu make"
396
397 itextdoccols="
398The Greenstone demonstration collection has been installed. Would you
399like to install any other collections from the installation cd-rom? [y]"
400
401 itextdec_dls="
402Development Library Subset collection (dls-e) - 150MB? [y]"
403
404 itextdec_wrdpdf="
405MSWord and PDF demonstration (wrdpdf-e) - 4MB? [y]"
406
407 itextdec_gsarch="
408Greenstone Archives collection (gsarch-e) - 9MB? [y]"
409
410 itextdec_cltbib="
411Bibliography collection (cltbib-e) - 9MB? [y]"
412
413 itextdec_cltext="
414Bibliography supplement (cltext-e) - 1MB? [y]"
415
416 itextdec_marc="
417MARC example (MARC-e) - 2MB? [y]"
418
419 itextdec_oai="
420OAI demo collection (oai-e) - 19MB? [y]"
421
422 itextdec_image="
423Simple image collection (image-e) - 1MB? [y]"
424
425 itextdec_authen="
426Formatting and authentication demo (authen-e) - 12MB? [y]"
427
428 itextdec_garish="
429Garish version of demo collection (garish) - 12MB? [y]"
430
431 itextdec_isis="
432CDS/ISIS example collection (isis-e) - 2MB? [y]"
433
434fi
435
436
437# ==============================================================================
438# INSTALLATION CODE
439# ==============================================================================
440
441cmd_cp="cp"
442cmd_cpr="cp -r"
443cmd_chmod="chmod"
444cmd_mkdir="mkdir -p"
445cmd_ln="ln -s"
446cmd_mv="mv"
447cmd_rm="rm -i"
448cmd_rmr="rm -r"
449
450thisdir=`pwd`
451cd ..
452cd_dir=`pwd`
453cd "$thisdir"
454
455
456# script must be run from within cdrom/unix directory
457if [ ! -f "${thisdir}/Install.sh" ]; then
458 echo "$itext1"
459 echo "$itext0"
460 exit 1
461fi
462
463# check that various important directories are on the cd
464if [ ! -d "${cd_dir}/gsdl" ]; then
465 echo
466 echo "${itext2}${cd_dir}/gsdl"
467 echo "$itext0"
468 exit 1
469fi
470if [ ! -d "${cd_dir}/Unix/bin/linux" ]; then
471 echo
472 echo "${itext2}${cd_dir}/Unix/bin/linux"
473 echo "$itext0"
474 exit 1
475fi
476
477# install to /usr/local by default if user is "root", otherwise
478# default to users home directory
479gsdlos=`uname -s | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
480if [ "$gsdlos" = "linux" ]; then
481 logname=`whoami`
482else
483 logname=""
484fi
485if [ "$logname" = "" ]; then
486 logname=`logname`
487fi
488gsdlhome="/home/${logname}"
489if [ "$logname" = "root" ]; then
490 gsdlhome="/usr/local"
491fi
492
493installpdf=$itext3cd
494if [ $iscdrom = "no" ]; then
495 installpdf=$itext3web
496fi
497
498echo "$installpdf"
499echo "$itext3"
500printf "%s" "> "
501read ans
502log="${log}${itext3}
503> $ans
504"
505if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
506 echo "$itext0"
507 exit 0
508fi
509
510# check we've got gnu make (we assume gnu make will always be used on linux)
511make="make"
512if [ "$gsdlos" != "linux" ]; then
513 # if gmake exists, use it
514 whichgmake=`which gmake 2> /dev/null`
515 if [ -x "$whichgmake" ]; then
516 make="gmake"
517 else
518 # try plain old "make"
519 make_ver=`make -v 2> /dev/null | sed -n 's/^GNU.*/GNU/p'`
520 if [ "$make_ver" != "GNU" ]; then
521 echo "$itext59"
522 log="${log}$itext59"
523 printf "%s" "> "
524 read ans
525 make="$ans"
526 fi
527 fi
528fi
529
530# get gsdlhome
531msg="$itext4"
532if [ "$gsdlos" = "linux" ]; then
533msg="${msg}$itext5"
534fi
535msg="${msg}$itext6 [${gsdlhome}]"
536echo "$msg"
537printf "%s" "> "
538read ans
539log="${log}${msg}
540> $ans
541"
542if [ "$ans" != "" ]; then
543 gsdlhome="$ans"
544fi
545
546# ------------------------------------------------------------------------------
547# MORE FRENCH STRINGS
548# ------------------------------------------------------------------------------
549if [ "$gsdllangcode" == "fr" ]; then
550
551 itext7="
552Avertissement: Le répertoire ${gsdlhome} n'existe pas.
553Voulez-vous le créer? [y]"
554
555 itext8="ERREUR: la création du répertoire $gsdlhome a échoué"
556
557# ------------------------------------------------------------------------------
558# MORE RUSSIAN STRINGS
559# ------------------------------------------------------------------------------
560elif [ "$gsdllangcode" == "ru" ]; then
561
562 itext7="
563ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: äÉÒÅËÔÏÒÉÑ ${gsdlhome} ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
564óÏÚÄÁÔØ ÅÅ? [y]"
565
566 itext8="ïûéâëá: îÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $gsdlhome."
567
568# ------------------------------------------------------------------------------
569# MORE SPANISH STRINGS
570# ------------------------------------------------------------------------------
571elif [ "$gsdllangcode" == "es" ]; then
572
573 itext7="
574Advertencia: El directorio ${gsdlhome} no existe.
575¿Desea crearlo? [y]"
576
577 itext8="ERROR: no se pudo crear el directorio $gsdlhome."
578
579# ------------------------------------------------------------------------------
580# MORE ENGLISH STRINGS
581# ------------------------------------------------------------------------------
582else
583
584 itext7="
585Warning: The ${gsdlhome} directory does not exist.
586Create it? [y]"
587
588 itext8="ERROR: failed to create $gsdlhome directory"
589
590fi
591
592if [ ! -d "$gsdlhome" ]; then
593 echo "$itext7"
594 printf "%s" "> "
595 read ans
596 log="${log}${itext7}
597> $ans
598"
599 if [ "$ans" = "" ]; then
600 ans="y"
601 fi
602 if [ "$ans" = "y" ]; then
603 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome\"]"
604 echo "$msg"
605 log="${log}${msg}
606"
607 $cmd_mkdir "$gsdlhome"
608 if [ ! -d "$gsdlhome" ]; then
609 echo "$itext8"
610 echo "$itext0"
611 exit 1
612 fi
613 else
614 echo "$itext0"
615 exit 0
616 fi
617fi
618
619# from now on $gsdlhome includes the "/gsdl"
620gsdlhome="${gsdlhome}/gsdl"
621
622# ------------------------------------------------------------------------------
623# MORE FRENCH STRINGS
624# ------------------------------------------------------------------------------
625if [ "$gsdllangcode" == "fr" ]; then
626
627 itext9="
628Si cette installation échoue ou est annulée, n'oubliez pas d'exécuter
629le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
630l'installation partielle.
631Continuer? [y]"
632
633 itext10="
634Installation de la hiérarchie des répertoires à partir de ${gsdlhome}"
635
636 itext11="
637Souhaitez-vous installer la documentation Greenstone sur votre disque
638dur? La documentation occupe environ 4Mo d'espace disque. Si vous
639n'installez pas la documentation, vous pourrez toujours la consulter à
640partir du répertoire 'docs' du CD-ROM [y]"
641
642 itext12="
643Souhaitez-vous installer la fonctionnalité Greenstone pour exporter?
644Cette fonctionnalité vous permet d'exporter une collection Greenstone
645dans un format adapté pour graver un CD-ROM auto-installable sous
646Windows. Ce module occupe environ 23Mo d'espace disque [n]"
647
648 itext18="Initialisation des permissions ..."
649
650 itext19="
651Afin de permettre la construction de collection par les utilisateurs
652finaux, le programme cgi Greenstone doit pouvoir écrire dans les
653répertoires ${gsdlhome}/collect et ${gsdlhome}/tmp répertoires.
654Sur la plupart des systèmes, cela veut dire que ces répertoires doivent
655permettre l'écriture. Permettre l'écriture dans ces répertoires? [y]"
656
657 itext20="
658Vous pouvez soit installer les fichiers [b]inaires exécutables sous
659Linux (i386 seulement), soit installer et [c]ompiler le code source
660de Greenstone."
661
662 itext21="Entrez \"[b]\" ou \"c\""
663
664 itext22="Installation des fichiers binaires exécutables sous Linux"
665
666 itext23="Installation du code source"
667
668 itext24="configuration ..."
669
670 itext25="compilation ..."
671
672 itext26="installation ..."
673
674 itext27="ERREUR: La compilation a échoué"
675
676 itext28="
677
678Greenstone a besoin d'un répertoire cgi (pour les exécutables) valide
679(normalement appelé cgi-bin sur les systèmes Unix) pour exécuter.
680Ce peut être soit:
681 1. Le répertoire cgi-bin Greenstone par défaut (${gsdlhome}/cgi-bin).
682 Dans ce cas vous devrez configurer votre serveur Web pour considérer
683 ce répertoire comme étant son répertoire cgi pour les fichiers
684 exécutables. Pour Apache, vous pouvez utiliser la directive
685 'ScriptAlias' (les détails concernant la configuration de votre
686 serveur Web seront affichés à la fin de cette procédure
687 d'installation)."
688
689 itext29=" Veuillez noter que vous aurez certainement besoin de l'aide de votre
690 administrateur système pour reconfigurer votre serveur Web."
691
692 itext30=" 2. Un répertoire cgi-bin existant. Normallement un répertoire cgi-bin
693 est créé au moment de l'installation de votre serveur web.
694 Généralement c'est soit /home/httpd/cgi-bin, soit
695 /usr/local/apache/cgi-bin, soit /var/lib/apache/cgi-bin."
696
697 itext31=" De nombreux systèmes permettent aux utilisateurs individuels d'avoir
698 leur propre répertoire cgi-bin in /home/username/public_html/cgi-bin."
699
700 itext32="Entrez \"[1]\" or \"2\""
701
702 itext33="
703N'oubliez pas de configurer votre serveur Web pour considérer
704${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en
705faites pas, vous serez à nouveau prévenu à la fin de cette procédure
706d'installation."
707
708 itext37="Exécutez le script uninstall (${gsdlhome}/Uninstall.sh) pour nettoyer
709une installation partielle."
710
711 itext42="
712
713Pour pouvoir exécuter Greenstone, le répertoire $gsdlhome et tout son
714contenu doit être accessible à partir du Web.
715Pour que cela soit possible, vous pouvez soit:
716 1. Configurer le serveur Web pour que le répertoire $gsdlhome soit
717 lui-même accessible à partir du Web."
718
719 itext43=" 2. Indiquer un répertoire Web déjà accessible à partir du Web dans
720 lequel un lien symbolique (ln -s) vers $gsdlhome sera créé.
721 Lorsqu'un serveur Web est installé, un répertoire accessible à partir
722 du web est toujours créé (le serveur Web Apache utilise la directive
723 DocumentRoot pour définir ce répertoire). En général, ce répertoire
724 est appelé /home/httpd/html, ou bien /usr/local/apache/htdocs, ou
725 encore /var/lib/apache/htdocs."
726
727 itext44=" De nombreux systèmes permettent aux utilisateurs individuels
728 d'avoir leur propre répertoire accessible à partir du Web. Ces
729 répertoires sont créés à partir du répertoire
730 /home/username/public_html."
731
732 itext45=" Veuillez noter que le serveur Web devra être configuré pour
733 accepter les liens symboliques à partir de ce répertoire. Pour
734 le serveur Apache cela signifie que ce répertoire doit être
735 configuré avec les options SymLinksIfOwnerMatch et FollowSymLinks
736 (La plupart des installations Apache sont configurées de cette façon
737 par défaut)"
738
739 itext46="
740N'oubliez pas de configurer le serveur Web pour que le répertoire $gsdlhome
741soit accessible à partir du Web. On vous le rappellera encore une fois à la
742fin la fin de la procédure d'installation."
743
744# ------------------------------------------------------------------------------
745# MORE RUSSIAN STRINGS
746# ------------------------------------------------------------------------------
747elif [ "$gsdllangcode" == "ru" ]; then
748
749 itext9="
750åÓÌÉ ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÂÙÌÁ ÎÅÕÄÁÞÎÏÊ ÉÌÉ ÏÔÍÅÎÅÎÁ, ××ÅÄÉÔÅ
751ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh), ÞÔÏÂÙ ÏÞÉÓÔÉÔØ
752ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ.
753ðÒÏÄÏÌÖÉÔØ? [y]"
754
755 itext10="
756éÎÓÔÁÌÌÑÃÉÑ ÓÔÒÕËÔÕÒÙ ÄÉÒÅËÔÏÒÉÉ Greenstone × ${gsdlhome}"
757
758 itext11="
759èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÄÏËÕÍÅÎÔÁÃÉÀ Greenstone ÎÁ ÷ÁÛ ÖÅÓÔËÉÊ ÄÉÓË?
760äÏËÕÍÅÎÔÁÃÉÑ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 4 Mb ÐÒÏÓÔÒÁÎÓÔ×Á. åÓÌÉ ÷Ù ÎÅ
761ÈÏÔÉÔÅ ÕÓÔÁÎÁ×ÌÉ×ÁÔØ ÅÅ, Õ ÷ÁÓ ÏÓÔÁÅÔÓÑ ×ÏÚÍÏÖÎÏÓÔØ ÐÏÌÕÞÉÔØ ÄÏÓÔÕÐ
762Ë ÎÅÊ ÉÚ ÄÉÒÅËÔÏÒÉÉ ÄÏËÕÍÅÎÔÏ× CD-ROM) [y]"
763
764 itext12="
765èÏÔÅÌÉ ÂÙ ÷Ù ÕÓÔÁÎÏ×ÉÔØ ÐÏÄÄÅÒÖËÕ ÆÕÎËÃÉÊ Greenstone \"ÜËÓÐÏÒÔ
766ËÏÍÐÁËÔ-ÄÉÓËÁ\"? üÔÁ ÆÕÎËÃÉÑ ÐÏÚ×ÏÌÑÅÔ ÷ÁÍ ÜËÓÐÏÒÔÉÒÏ×ÁÔØ ËÏÌÌÅËÃÉÀ
767Greenstone × ÆÏÒÍÅ, ÐÏÄÈÏÄÑÝÅÊ ÄÌÑ Á×ÔÏÕÓÔÁÎÏ×ËÉ Windows CD-ROM. üÔÏÔ
768ÐÁËÅÔ ÔÒÅÂÕÅÔ ÐÒÉÂÌÉÚÉÔÅÌØÎÏ 23 íâ ÄÉÓËÏ×ÏÇÏ ÐÒÏÓÔÒÁÎÓÔ×Á [n]"
769
770 itext18="õÓÔÁÎÏ×ËÁ ÒÁÚÒÅÛÅÎÉÊ..."
771
772 itext19="
773äÌÑ ÐÏÓÔÒÏÅÎÉÑ ËÏÌÌÅËÃÉÉ, ÄÏÓÔÕÐÎÏÊ ÄÌÑ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ, cgi
774ÐÒÏÇÒÁÍÍÁ Greenstone ÄÏÌÖÎÙ ÉÍÅÔØ ×ÏÚÍÏÖÎÏÓÔØ ×ÐÉÓÁÔØÓÑ × ÄÉÒÅËÔÏÒÉÉ
775${gsdlhome}/collect É ${gsdlhome}/tmp. äÌÑ ÂÏÌØÛÉÎÓÔ×Á ÓÉÓÔÅÍ ÜÔÏ
776ÏÚÎÁÞÁÅÔ, ÞÔÏ ÏÎÉ ÄÏÌÖÎÙ ÂÙÔØ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙ. óÄÅÌÁÔØ ÜÔÉ
777ÄÉÒÅËÔÏÒÉÉ ÇÌÏÂÁÌØÎÏ ÐÅÒÅÚÁÐÉÓÙ×ÁÅÍÙÍÉ? [y]"
778
779 itext20="
780÷Ù ÍÏÖÅÔÅ ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ ÐÒÅÄËÏÍÐÉÌÉÒÕÅÍÙÅ, ÓÔÁÔÉÞÅÓËÉ Ó×ÑÚÁÎÎÙÅ
781[b] Ä×ÏÉÞÎÙÅ ËÏÄÙ linux (ÔÏÌØËÏ i386) ÉÌÉ ÕÓÔÁÎÏ×ÉÔØ É
782[c] ËÏÍÐÉÌÉÒÏ×ÁÔØ ÉÓÈÏÄÎÕÀ ÐÒÏÇÒÁÍÍÕ Greenstone"
783
784 itext21="÷×ÅÄÉÔÅ \"[b]\" ÉÌÉ \"c\""
785
786 itext22="éÎÓÔÁÌÌÑÃÉÑ Ä×ÏÉÞÎÙÈ ËÏÄÏ× linux"
787
788 itext23="éÎÓÔÁÌÌÑÃÉÑ ÉÓÈÏÄÎÏÊ ÐÒÏÇÒÁÍÍÙ"
789
790 itext24="ëÏÎÆÉÇÕÒÉÒÏ×ÁÎÉÅ..."
791
792 itext25="ëÏÍÐÉÌÉÒÏ×ÁÎÉÅ..."
793
794 itext26="éÎÓÔÁÌÑÃÉÑ..."
795
796 itext27="ïûéâëá: ëÏÍÐÉÌÑÃÉÑ ÎÅ ÕÄÁÌÁÓØ"
797
798 itext28="
799
800Greenstone ÎÕÖÎÁ ÐÒÉÇÏÄÎÁÑ ÉÓÐÏÌÎÉÔÅÌØÎÁÑ ÄÉÒÅËÔÏÒÉÑ (× unix ÓÉÓÔÅÍÁÈ
801ÏÂÙÞÎÏ ÎÁÚÙ×ÁÅÍÁÑ cgi-bin), ÉÚ ËÏÔÏÒÏÊ ÏÎ ÚÁÐÕÓËÁÅÔÓÑ.
802üÔÏ ÍÏÖÅÔ ÂÙÔØ ÌÉÂÏ:
803 1. õÓÔÁÎÏ×ËÁ ÐÏ ÕÍÏÌÞÁÎÉÀ ÄÉÒÅËÔÏÒÉÉ Greenstone cgi-bin
804 (${gsdlhome}/cgi-bin). åÓÌÉ ×Ù ÉÓÐÏÌØÚÕÅÔÅ ÐÏ ÕÍÏÌÞÁÎÉÀ Greenstone,
805 ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÓÄÅÌÁÔØ
806 ÜÔÕ ÄÉÒÅËÔÏÒÉÀ ËÁË cgi ÉÓÐÏÌÎÉÍÕÀ. äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÷Ù
807 ÉÓÐÏÌØÚÕÅÔÅ ÄÉÒÅËÔÉ×Õ ScriptAlias, ÞÔÏÂÙ ×ÙÐÏÌÎÉÔØ ÜÔÏ (ÐÏÄÒÏÂÎÏÓÔÉ
808 Ï ÔÏÍ, ËÁË ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ, ÂÕÄÕÔ ÄÁÎÙ × ËÏÎÃÅ ÜÔÏÊ
809 ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ)."
810
811 itext29=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ, ÞÔÏ ÷Ù ÂÕÄÅÔÅ ×ÅÒÏÑÔÎÏ ÎÕÖÄÁÔØÓÑ × ÐÏÍÏÝÉ
812 ÷ÁÛÅÇÏ ÓÉÓÔÅÍÎÏÇÏ ÁÄÍÉÎÉÓÔÒÁÔÏÒÁ, ÞÔÏÂÙ ÒÅËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ
813 ÷ÅÂ-ÓÅÒ×ÅÒ"
814
815 itext30=" 2. óÕÝÅÓÔ×ÕÀÝÁÑ ÄÉÒÅËÔÏÒÉÑ cgi-bin. ïÂÙÞÎÏ ÜÔÁ ÄÉÒÅËÔÏÒÉÑ
816 ÓÏÚÄÁÅÔÓÑ ÐÒÉ ÉÎÓÔÁÌÌÑÃÉÉ ×ÁÛÅÇÏ ÷ÅÂ-ÓÅÒ×ÅÒÁ. ëÁË ÐÒÁ×ÉÌÏ, ÜÔÏ ÍÏÖÅÔ
817 ÂÙÔØ /home/httpd/cgi-bin, ÉÌÉ /usr/local/apache/cgi-bin, ÉÌÉ
818 /var/lib/apache/cgi-bin."
819
820 itext31=" íÎÏÇÉÅ ÓÉÓÔÅÍÙ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ ÐÏÌØÚÏ×ÁÔÅÌÑÍ
821 ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÙÊ cgi-bin × /home/username/public_html/cgi-bin."
822
823 itext32="÷×ÅÄÉÔÅ \"[1]\" ÉÌÉ \"2\""
824
825 itext33="
826îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÏÂÒÁÔÉÔØ
827${gsdlhome}/cgi-bin × cgi-×ÙÐÏÌÎÉÍÕÀ ÄÉÒÅËÔÏÒÉÀ. îÅ ×ÏÌÎÕÊÔÅÓØ, ËÏÇÄÁ
828÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
829
830 itext37="éÓÐÏÌØÚÕÊÔÅ ÄÅÉÎÓÔÁÌÌÑÃÉÏÎÎÙÊ ÓËÒÉÐÔ (${gsdlhome}/Uninstall.sh)
831ÄÌÑ ÔÏÇÏ, ÞÔÏÂÙ ÕÄÁÌÉÔØ ÞÁÓÔÉÞÎÕÀ ÕÓÔÁÎÏ×ËÕ."
832
833 itext42="
834
835þÔÏÂÙ Greenstone ÍÏÇ ÂÙÔØ ÚÁÐÕÝÅÎ, ÄÉÒÅËÔÏÒÉÑ $gsdlhome É ×ÓÅ ÅÅ
836ÓÏÄÅÒÖÉÍÏÅ ÄÏÌÖÎÙ ÂÙÔØ ÄÏÓÔÕÐÎÙ ÉÚ ÓÅÔÉ.
837þÔÏÂÙ ÓÄÅÌÁÔØ ÜÔÏ ÏÓÕÝÅÓÔ×ÉÍÙÍ, ÷Ù ÍÏÖÅÔÅ ÉÌÉ:
838 1. óËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ $gsdlhome Ñ×ÌÑÌÓÑ
839 Á×ÔÏÍÁÔÉÞÅÓËÉ ÄÏÓÔÕÐÎÙÍ ÉÚ ÓÅÔÉ."
840
841 itext43=" 2.ïÂÅÓÐÅÞÉÔØ ÓÕÝÅÓÔ×ÕÀÝÕÀ ÄÏÓÔÕÐÎÕÀ ÄÉÒÅËÔÏÒÉÀ, ÉÚ
842 ËÏÔÏÒÏÊ ÓÉÍ×ÏÌØÎÁÑ ÓÓÙÌËÁ (ln -s) ÂÕÄÅÔ ÓÄÅÌÁÎÁ Ë $gsdlhome.
843 ëÏÇÄÁ ×ÁÛ ÓÅÒ×ÅÒ ÂÙÌ ÕÓÔÁÎÏ×ÌÅÎ, ÄÉÒÅËÔÏÒÉÑ, ÄÏÓÔÕÐÎÁÑ ÉÚ ÓÅÔÉ,
844 ÂÕÄÅÔ ÓÏÚÄÁÎÁ (÷ÅÂ-ÓÅÒ×ÅÒ Apache ÉÓÐÏÌØÚÕÅÔ ÄÉÒÅËÔÉ×Õ
845 DocumentRoot ÄÌÑ ÏÐÒÅÄÅÌÅÎÉÑ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. ïÂÙÞÎÏ ÜÔÏÊ
846 ÄÉÒÅËÔÏÒÉÅÊ ÍÏÇÌÉ ÂÙ ÂÙÔØ /home/httpd/html, ÉÌÉ
847 /usr/local/apache/htdocs, ÉÌÉ /var/lib/apache/htdocs."
848
849 itext44=" íÎÏÇÉÅ ÓÉÓÔÅÍ ÔÁËÖÅ ÐÏÚ×ÏÌÑÀÔ ÉÎÄÉ×ÉÄÕÁÌØÎÙÍ
850 ÐÏÌØÚÏ×ÁÔÅÌÑÍ ÉÍÅÔØ ÉÈ ÓÏÂÓÔ×ÅÎÎÕÀ ÄÏÓÔÕÐÎÕÀ ÉÚ ÓÅÔÉ ÄÉÒÅËÔÏÒÉÀ
851 × /home/username/public_html."
852
853 itext45=" ïÂÒÁÔÉÔÅ ×ÎÉÍÁÎÉÅ ÎÁ ÔÏ, ÞÔÏ ×ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÂÕÄÅÔ
854 ÄÏÌÖÅÎ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÎ ÔÁË, ÞÔÏÂÙ ÐÏÚ×ÏÌÉÔØ ÓÉÍ×ÏÌØÎÙÅ ÓÓÙÌËÉ
855 ÉÚÎÕÔÒÉ ÜÔÏÊ ÄÉÒÅËÔÏÒÉÉ. äÌÑ ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ, ÞÔÏ
856 ÄÁÎÎÁÑ ÄÉÒÅËÔÏÒÉÑ ÄÏÌÖÎÁ ÆÏÒÍÉÒÏ×ÁÔØÓÑ Ó ÐÏÍÏÝØÀ
857 SymLinksIfOwnerMatch ÉÌÉ ×ÁÒÉÁÎÔÁ FollowSymLinks (ÂÏÌØÛÉÎÓÔ×Ï
858 ÉÎÓÔÁÌÌÑÃÉÊ Apache ÆÏÒÍÉÒÕÀÔ ÜÔÏÔ ÐÕÔØ ÐÏ ÕÍÏÌÞÁÎÉÀ)."
859
860 itext46="
861îÅ ÚÁÂÕÄØÔÅ ËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË, ÞÔÏÂÙ ÆÏÒÍÉÒÏ×ÁÔØ
862×ÁÛ webserver, ÞÔÏÂÙ $gsdlhome ÂÙÌ ÄÏÓÔÕÐÅÎ ÉÚ ÓÅÔÉ. ÷ÁÍ ÂÕÄÅÔ
863ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÄÁÎÎÏÊ ÉÎÓÔÁÌÌÑÃÉÏÎÎÏÊ ÐÒÏÃÅÄÕÒÙ."
864
865# ------------------------------------------------------------------------------
866# MORE SPANISH STRINGS
867# ------------------------------------------------------------------------------
868elif [ "$gsdllangcode" == "es" ]; then
869
870 itext9="
871Si no se puede realizar la instalación o ésta se cancela, corra el guión
872de desinstalación (${gsdlhome}/Uninstall.sh) para eliminar las partes
873instaladas.
874¿Desea continuar? [y]"
875
876 itext10="
877Instalación de la estructura de directorios Greenstone en ${gsdlhome}"
878
879 itext11="
880¿Le gustaría instalar la documentación de Greenstone en su disco duro?
881Los documentos ocuparán aproximadamente 4 MB de espacio. Si decide no
882instalarlos aún podrá tener acceso a ellos desde el directorio de
883docs del CD-ROM) [y]"
884
885 itext12="
886¿Le gustaría instalar el soporte para la función \"exportar a CD\" de
887Greenstone? Esta función le permite exportar una colección Greenstone
888en una forma que permita escribir en ella a un CD-ROM para Windows que
889se podrá instalar automáticamente. Este paquete utilizará
890aproximadamente 23 MB de espacio en el disco duro [n]"
891
892 itext18="Estableciendo los permisos..."
893
894 itext19="
895Con el fin de que el usuario final pueda crear y construir una
896colección, el programa cgi de Greenstone deberá ser capaz de escribir
897en los directorios ${gsdlhome}/collect y ${gsdlhome}/tmp. En la
898mayoría de los sistemas esto significa que deberá poderse escribir en
899ellos globalmente.
900¿Desea que se pueda escribir en estos directorios globalmente? [y]"
901
902 itext20="
903Usted puede instalar los [b]inarios de Linux vinculados estáticamente
904que se han compilado previamente (únicamente i386) o instalar y
905[c]ompilar el código fuente de Greenstone."
906
907 itext21="Escriba \"[b]\" o \"c\""
908
909 itext22="Instalación de los binarios de Linux"
910
911 itext23="Instalación del código fuente"
912
913 itext24="configurando..."
914
915 itext25="compilando..."
916
917 itext26="instalando..."
918
919 itext27="ERROR: No se pudo compilar."
920
921 itext28="
922
923Greenstone necesita un directorio ejecutable cgi que sea válido
924(normalmente llamado cgi-bin en los sistemas UNIX) desde el cual se
925pueda correr.
926Este puede ser:
927 1. El directorio cgi-bin por omisión de Greenstone
928 (${gsdlhome}/cgi-bin). Si usted utiliza esta opción entonces
929 necesitará configurar su servidor Web para que trate a este
930 directorio como un directorio ejecutable cgi. En el caso del
931 servidor Web Apache se utiliza la directiva ScriptAlias para poder
932 hacer esto (los detalles de la forma de configurar su servidor Web
933 aparecerán al final de este proceso de instalación)."
934
935 itext29=" Recuerde que probablemente necesitará ayuda de su administrador
936 de sistemas para reconfigurar su servidor Web."
937
938 itext30=" 2. Un directorio cgi-bin existente. Normalmente se crea un
939 directorio cgi-bin al momento de instalar su servidor Web. En
940 términos generales este puede ser /home/httpd/cgi-bin,
941 /usr/local/apache/cgi-bin o /var/lib/apache/cgi-bin."
942
943 itext31=" Muchos sistemas también le permiten a sus usuarios tener sus
944 propios directorios individuales cgi-bin en
945 /home/username/public_html/cgi-bin."
946
947 itext32="Escriba \"[1]\" o \"2\""
948
949 itext33="
950No olvide configurar su servidor Web para que trate a ${gsdlhome}/cgi-bin
951como un directorio ejecutable cgi. No se preocupe, esto se le recordará
952nuevamente al final del proceso de instalación."
953
954 itext37="Corra el guión de desinstalación (${gsdlhome}/Uninstall.sh) para
955eliminar las partes instaladas."
956
957 itext42="
958
959Para que Greenstone pueda funcionar, el directorio $gsdlhome y todos sus
960contenidos deberán ser accesibles desde la Web.
961Para lograr esto usted puede:
962 1. Configurar su servidor Web de tal manera que el mismo $gsdlhome sea
963 accesible desde la Web."
964
965 itext43=" 2. Proporcionar un directorio existente que sea accesible desde la
966 Web, a través del cual se creará un vínculo simbólico (ln -s) con
967 $gsdlhome. Cuando instaló su servidor seguramente se creó un
968 directorio accesible desde la Web (el servidor Apache utiliza la
969 directiva DocumentRoot para definir este directorio). En términos
970 generales este directorio podrá ser /home/httpd/html,
971 /usr/local/apache/htdocs o /var/lib/apache/htdocs."
972
973 itext44=" Muchos sistemas también le permiten a los usuarios tener sus
974 propios directorios individuales accesibles desde la Web
975 en /home/username/public_html."
976
977 itext45=" Recuerde que necesitará configurar su servidor Web para permitir
978 la creación de vínculos simbólicos desde el interior de este
979 directorio. En el caso del servidor Apache esto significa que
980 dicho directorio deberá configurarse con la opción
981 SymLinksIfOwnerMatch o FollowSymLinks (la mayoría de las
982 instalaciones Apache se configuran de esta manera por omisión)."
983
984 itext46="
985No olvide configurar su servidor Web para hacer que $gsdlhome sea
986accesible desde la Web. Se le recordará esto nuevamente al final del
987proceso de instalación."
988
989# ------------------------------------------------------------------------------
990# MORE ENGLISH STRINGS
991# ------------------------------------------------------------------------------
992else
993
994 itext9="
995If this installation fails or is cancelled, run the uninstall
996script (${gsdlhome}/Uninstall.sh) to clean up the partial
997installation.
998Continue? [y]"
999
1000 itext10="
1001Installing Greenstone directory structure to ${gsdlhome}"
1002
1003 itext11="
1004Would you like to install the Greenstone documentation to your
1005hard drive? The docs will use about 4Mb of space. If you choose
1006not to install them you can still access them from within the
1007docs directory of the cd-rom) [y]"
1008
1009 itext12="
1010Would you like to install support for Greenstone's \"CD exporting\"
1011function? This function allows you to export a Greenstone collection
1012in a form suitable for writing to a self-installing Windows cd-rom.
1013This package will use approximately 23Mb of disk space [n]"
1014
1015 itext18="Setting permissions ..."
1016
1017 itext19="
1018In order for end-user collection building to be enabled the
1019Greenstone cgi program must be able to write to the
1020${gsdlhome}/collect and ${gsdlhome}/tmp directories.
1021On most systems this means they must be globally writable.
1022Make these directories globally writable? [y]"
1023
1024 itext20="
1025You may either install pre-compiled, statically linked linux [b]inaries
1026(i386 only) or install and [c]ompile the Greenstone source code"
1027
1028 itext21="Enter \"[b]\" or \"c\""
1029
1030 itext22="Installing linux binaries"
1031
1032 itext23="Installing source code"
1033
1034 itext24="configuring ..."
1035
1036 itext25="compiling ..."
1037
1038 itext26="installing ..."
1039
1040 itext27="ERROR: Compilation failed"
1041
1042 itext28="
1043
1044Greenstone needs a valid cgi executable directory (normally called
1045cgi-bin on unix systems) from which to run.
1046This may be either:
1047 1. The default Greenstone cgi-bin directory (${gsdlhome}/cgi-bin).
1048 If you use the Greenstone default you will need to configure
1049 your webserver to treat this directory as a cgi executable
1050 directory. For the Apache webserver you use the ScriptAlias
1051 directive to do this (details of how to configure your webserver
1052 will be displayed at the end of this installation procedure)."
1053
1054 itext29=" Note that you will probably need help from your system
1055 administrator to reconfigure your webserver."
1056
1057 itext30=" 2. An existing cgi-bin directory. Normally a cgi-bin directory
1058 is created when your webserver is installed. Typically, this
1059 might be /home/httpd/cgi-bin, or /usr/local/apache/cgi-bin, or
1060 /var/lib/apache/cgi-bin."
1061
1062 itext31=" Many systems also allow individual users to have their own
1063 cgi-bin in /home/username/public_html/cgi-bin."
1064
1065 itext32="Enter \"[1]\" or \"2\""
1066
1067 itext33="
1068Don't forget to configure your webserver to treat ${gsdlhome}/cgi-bin
1069as a cgi executable directory. Don't worry, you'll be
1070reminded of this again at the end of the installation
1071procedure"
1072
1073 itext37="Run the uninstall script (${gsdlhome}/Uninstall.sh)
1074to clean up the partial installation."
1075
1076 itext42="
1077
1078In order for Greenstone to run, the $gsdlhome
1079directory and all it contains must be accessible from the web.
1080To make this happen you may either:
1081 1. Configure your webserver so that $gsdlhome
1082 is itself accessible from the web."
1083
1084 itext43=" 2. Provide an existing web accessible directory from which
1085 a symbolic link (ln -s) will be made to $gsdlhome.
1086 When your server was installed a web accessible directory
1087 will have been created (the Apache webserver uses the
1088 DocumentRoot directive to define this directory). Typically
1089 this directory might be /home/httpd/html, or /usr/local/apache/htdocs,
1090 or /var/lib/apache/htdocs."
1091
1092 itext44=" Many systems also allow individual users to have their own
1093 web accessible directory in /home/username/public_html."
1094
1095 itext45=" Note that your web server will need to be configured to allow
1096 symbolic links from within this directory. For the Apache
1097 server that means this directory must be configured with
1098 the SymLinksIfOwnerMatch or FollowSymLinks option (most Apache
1099 installations are configured this way by default)."
1100
1101 itext46="
1102Don't forget to configure your webserver to make $gsdlhome
1103accessible from the web. You'll be reminded of this again
1104at the end of this installation procedure."
1105
1106fi
1107
1108msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}\"]"
1109echo "$msg"
1110log="${log}${msg}
1111"
1112$cmd_mkdir "$gsdlhome"
1113if [ ! -d "$gsdlhome" ]; then
1114 echo "$itext8"
1115 echo "$itext0"
1116 exit 1
1117fi
1118# set permissions on gsdlhome directory
1119msg="--> Install.sh: [$cmd_chmod u+rwx \"${gsdlhome}\"]"
1120echo "$msg"
1121log="${log}${msg}
1122"
1123$cmd_chmod u+rwx "$gsdlhome"
1124
1125# create initial Uninstall.sh
1126cd "$gsdlhome"
1127echo "#!/bin/sh" > Uninstall.sh
1128echo "" >> Uninstall.sh
1129echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1130echo "read ans" >> Uninstall.sh
1131echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1132echo " $cmd_chmod -R u+rwx \"$gsdlhome\"" >> Uninstall.sh
1133echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1134echo "fi" >> Uninstall.sh
1135$cmd_chmod u+x Uninstall.sh
1136cd "$thisdir"
1137
1138# create initial INSTALL_RECORD
1139echo "$log" >> "${gsdlhome}/INSTALL_RECORD"
1140
1141echo "$itext9"
1142echo "$itext9" >> "${gsdlhome}/INSTALL_RECORD"
1143printf "%s" "> "
1144read ans
1145echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1146if [ "$ans" != "" ] && [ "$ans" != "y" ]; then
1147 msg="$itext0"
1148 echo "$msg"
1149 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1150 exit 0
1151fi
1152
1153echo "$itext10"
1154echo "$itext10" >> "${gsdlhome}/INSTALL_RECORD"
1155
1156# copy gsdl directory across
1157msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/gsdl/\"* \"$gsdlhome\"]"
1158echo "$msg"
1159echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1160$cmd_cpr "${cd_dir}/gsdl/"* "$gsdlhome"
1161
1162# copy setup shell scripts across too
1163msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Unix/setup.\"* \"$gsdlhome\"]"
1164echo "$msg"
1165echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1166$cmd_cp "${cd_dir}/src/Unix/setup."* "$gsdlhome"
1167
1168# make sure we have a tmp directory
1169if [ ! -d "$gsdlhome/tmp" ]; then
1170 msg="--> Install.sh: [$cmd_mkdir \"$gsdlhome/tmp\"]"
1171 echo "$msg"
1172 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1173 $cmd_mkdir "${gsdlhome}/tmp"
1174fi
1175
1176# make collect directory writable so we can install collections
1177msg="--> Install.sh: [$cmd_chmod u+rwx \"$gsdlhome/collect\"]"
1178echo "$msg"
1179echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1180$cmd_chmod u+rwx "$gsdlhome/collect"
1181
1182if [ $iscdrom = "yes" ]; then
1183 # do we want docs directory?
1184 echo "$itext11"
1185 echo "$itext11" >> "${gsdlhome}/INSTALL_RECORD"
1186 printf "%s" "> "
1187 read ans
1188 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1189 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1190 docs="yes"
1191 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/docs\" \"$gsdlhome\"]"
1192 echo "$msg"
1193 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1194 $cmd_cpr "${cd_dir}/docs" "$gsdlhome"
1195 fi
1196
1197 # do we want the "CD exporting" stuff?
1198 echo "$itext12"
1199 echo "$itext12" >> "${gsdlhome}/INSTALL_RECORD"
1200 printf "%s" "> "
1201 read ans
1202 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1203 if [ "$ans" = "Y" ] || [ "$ans" = "y" ]; then
1204 export="yes"
1205 msg="--> Install.sh: [$cmd_chmod u+rw \"${gsdlhome}/bin\"]"
1206 echo "$msg"
1207 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1208 $cmd_chmod u+rw "${gsdlhome}/bin"
1209
1210 msg="--> Install.sh: [$cmd_mkdir \"${gsdlhome}/bin/windows\"]"
1211 echo "$msg"
1212 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1213 $cmd_mkdir "${gsdlhome}/bin/windows"
1214
1215 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/netscape\" \"${gsdlhome}/bin/windows\"]"
1216 echo "$msg"
1217 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1218 $cmd_cpr "${cd_dir}/Windows/bin/windows/netscape" "${gsdlhome}/bin/windows"
1219
1220 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/Win32s\" \"${gsdlhome}/bin/windows\"]"
1221 echo "$msg"
1222 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1223 $cmd_cpr "${cd_dir}/Windows/bin/windows/Win32s" "${gsdlhome}/bin/windows"
1224
1225 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net16\" \"${gsdlhome}/bin/windows\"]"
1226 echo "$msg"
1227 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1228 $cmd_cpr "${cd_dir}/Windows/bin/windows/net16" "${gsdlhome}/bin/windows"
1229
1230 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/Windows/bin/windows/net32\" \"${gsdlhome}/bin/windows\"]"
1231 echo "$msg"
1232 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1233 $cmd_cpr "${cd_dir}/Windows/bin/windows/net32" "${gsdlhome}/bin/windows"
1234
1235 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/server.exe\" \"${gsdlhome}/bin/windows\"]"
1236 echo "$msg"
1237 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1238 $cmd_cp "${cd_dir}/Windows/bin/windows/server.exe" "${gsdlhome}/bin/windows"
1239
1240 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/gssetup.exe\" \"${gsdlhome}/bin/windows\"]"
1241 echo "$msg"
1242 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1243 $cmd_cp "${cd_dir}/Windows/bin/windows/gssetup.exe" "${gsdlhome}/bin/windows"
1244
1245 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/setpw.exe\" \"${gsdlhome}/bin/windows\"]"
1246 echo "$msg"
1247 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1248 $cmd_cp "${cd_dir}/Windows/bin/windows/setpw.exe" "${gsdlhome}/bin/windows"
1249
1250 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/Windows/bin/windows/Setup.exe\" \"${gsdlhome}/bin/windows\"]"
1251 echo "$msg"
1252 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1253 $cmd_cp "${cd_dir}/Windows/bin/windows/Setup.exe" "${gsdlhome}/bin/windows"
1254 fi
1255
1256
1257 # which collections do we want
1258 cd "${cd_dir}/collect"
1259 echo "$itextdoccols"
1260 echo "$itextdoccols" >> "${gsdlhome}/INSTALL_RECORD"
1261 printf "%s" "> "
1262 read ans
1263 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1264 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1265
1266 # dls-e
1267 echo "$itextdec_dls"
1268 echo "$itextdec_dls" >> "${gsdlhome}/INSTALL_RECORD"
1269 printf "%s" "> "
1270 read ans
1271 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1272 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1273
1274 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/dls-e\" \"${gsdlhome}/collect\"]"
1275 echo "$msg"
1276 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1277 $cmd_cpr "${cd_dir}/collect/dls-e" "${gsdlhome}/collect"
1278 fi
1279
1280 # wrdpdf-e
1281 echo "$itextdec_wrdpdf"
1282 echo "$itextdec_wrdpdf" >> "${gsdlhome}/INSTALL_RECORD"
1283 printf "%s" "> "
1284 read ans
1285 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1286 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1287
1288 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/wrdpdf-e\" \"${gsdlhome}/collect\"]"
1289 echo "$msg"
1290 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1291 $cmd_cpr "${cd_dir}/collect/wrdpdf-e" "${gsdlhome}/collect"
1292 fi
1293
1294 # gsarch-e
1295 echo "$itextdec_gsarch"
1296 echo "$itextdec_gsarch" >> "${gsdlhome}/INSTALL_RECORD"
1297 printf "%s" "> "
1298 read ans
1299 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1300 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1301
1302 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/gsarch-e\" \"${gsdlhome}/collect\"]"
1303 echo "$msg"
1304 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1305 $cmd_cpr "${cd_dir}/collect/gsarch-e" "${gsdlhome}/collect"
1306 fi
1307
1308 # cltbib-e
1309 echo "$itextdec_cltbib"
1310 echo "$itextdec_cltbib" >> "${gsdlhome}/INSTALL_RECORD"
1311 printf "%s" "> "
1312 read ans
1313 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1314 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1315
1316 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltbib-e\" \"${gsdlhome}/collect\"]"
1317 echo "$msg"
1318 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1319 $cmd_cpr "${cd_dir}/collect/cltbib-e" "${gsdlhome}/collect"
1320 fi
1321
1322 # cltext-e
1323 echo "$itextdec_cltext"
1324 echo "$itextdec_cltext" >> "${gsdlhome}/INSTALL_RECORD"
1325 printf "%s" "> "
1326 read ans
1327 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1328 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1329
1330 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/cltext-e\" \"${gsdlhome}/collect\"]"
1331 echo "$msg"
1332 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1333 $cmd_cpr "${cd_dir}/collect/cltext-e" "${gsdlhome}/collect"
1334 fi
1335
1336 # MARC-e
1337 echo "$itextdec_marc"
1338 echo "$itextdec_marc" >> "${gsdlhome}/INSTALL_RECORD"
1339 printf "%s" "> "
1340 read ans
1341 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1342 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1343
1344 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/MARC-e\" \"${gsdlhome}/collect\"]"
1345 echo "$msg"
1346 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1347 $cmd_cpr "${cd_dir}/collect/MARC-e" "${gsdlhome}/collect"
1348 fi
1349
1350 # oai-e
1351 echo "$itextdec_oai"
1352 echo "$itextdec_oai" >> "${gsdlhome}/INSTALL_RECORD"
1353 printf "%s" "> "
1354 read ans
1355 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1356 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1357
1358 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/oai-e\" \"${gsdlhome}/collect\"]"
1359 echo "$msg"
1360 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1361 $cmd_cpr "${cd_dir}/collect/oai-e" "${gsdlhome}/collect"
1362 fi
1363
1364 # image-e
1365 echo "$itextdec_image"
1366 echo "$itextdec_image" >> "${gsdlhome}/INSTALL_RECORD"
1367 printf "%s" "> "
1368 read ans
1369 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1370 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1371
1372 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/image-e\" \"${gsdlhome}/collect\"]"
1373 echo "$msg"
1374 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1375 $cmd_cpr "${cd_dir}/collect/image-e" "${gsdlhome}/collect"
1376 fi
1377
1378 # authen-e
1379 echo "$itextdec_authen"
1380 echo "$itextdec_authen" >> "${gsdlhome}/INSTALL_RECORD"
1381 printf "%s" "> "
1382 read ans
1383 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1384 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1385
1386 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/authen-e\" \"${gsdlhome}/collect\"]"
1387 echo "$msg"
1388 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1389 $cmd_cpr "${cd_dir}/collect/authen-e" "${gsdlhome}/collect"
1390 fi
1391
1392 # garish-e
1393 echo "$itextdec_garish"
1394 echo "$itextdec_garish" >> "${gsdlhome}/INSTALL_RECORD"
1395 printf "%s" "> "
1396 read ans
1397 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1398 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1399
1400 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/garish\" \"${gsdlhome}/collect\"]"
1401 echo "$msg"
1402 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1403 $cmd_cpr "${cd_dir}/collect/garish" "${gsdlhome}/collect"
1404 fi
1405
1406 # isis-e
1407 echo "$itextdec_isis"
1408 echo "$itextdec_isis" >> "${gsdlhome}/INSTALL_RECORD"
1409 printf "%s" "> "
1410 read ans
1411 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1412 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1413
1414 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/collect/isis-e\" \"${gsdlhome}/collect\"]"
1415 echo "$msg"
1416 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1417 $cmd_cpr "${cd_dir}/collect/isis-e" "${gsdlhome}/collect"
1418 fi
1419 fi
1420fi
1421
1422# set permissions
1423msg="
1424$itext18
1425--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]
1426--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/script/\"*]"
1427echo "$msg"
1428echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1429$cmd_chmod -R u+rw "$gsdlhome"
1430$cmd_chmod a+x "${gsdlhome}/bin/script/"*
1431
1432# certain files in gsdl/etc need to be globally writable
1433msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/error.txt\"]"
1434echo "$msg"
1435echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1436$cmd_chmod a+w "$gsdlhome/etc/error.txt"
1437msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/key.db\"]"
1438echo "$msg"
1439echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1440$cmd_chmod a+w "$gsdlhome/etc/key.db"
1441msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/users.db\"]"
1442echo "$msg"
1443echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1444$cmd_chmod a+w "$gsdlhome/etc/users.db"
1445msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/main.cfg\"]"
1446echo "$msg"
1447echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1448$cmd_chmod a+w "$gsdlhome/etc/main.cfg"
1449msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/history.db\"]"
1450echo "$msg"
1451echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1452$cmd_chmod a+w "$gsdlhome/etc/history.db"
1453msg="--> Install.sh: [$cmd_chmod a+w \"$gsdlhome/etc/usage.txt\"]"
1454echo "$msg"
1455echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1456$cmd_chmod a+w "$gsdlhome/etc/usage.txt"
1457
1458
1459# should gsdl/collect and gsdl/tmp be globally writable?
1460echo "$itext19"
1461echo "$itext19" >> "${gsdlhome}/INSTALL_RECORD"
1462printf "%s" "> "
1463read ans
1464echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1465if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1466 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/collect\"]"
1467 echo "$msg"
1468 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1469 $cmd_chmod -R a+w "$gsdlhome/collect"
1470 msg="--> Install.sh: [$cmd_chmod -R a+w \"$gsdlhome/tmp\"]"
1471 echo "$msg"
1472 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1473 $cmd_chmod -R a+w "$gsdlhome/tmp"
1474fi
1475
1476# binaries or source code?
1477compile="yes"
1478if [ "$gsdlos" = "linux" ]; then
1479 echo "$itext20"
1480 echo "$itext20" >> "${gsdlhome}/INSTALL_RECORD"
1481
1482 found=no
1483 while [ "$found" = "no" ]; do
1484 echo "$itext21"
1485 echo "$itext21" >> "${gsdlhome}/INSTALL_RECORD"
1486 printf "%s" "> "
1487 read ans
1488 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1489 if [ "$ans" = "" ] || [ "$ans" = "b" ]; then
1490 compile="no"
1491 # install binaries
1492 msg="
1493$itext22
1494--> Install.sh: [$cmd_cpr \"${cd_dir}/Unix/bin/linux\" \"${gsdlhome}/bin\"]"
1495 echo "$msg"
1496 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1497 $cmd_cpr "${cd_dir}/Unix/bin/linux" "${gsdlhome}/bin"
1498 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/bin/linux/\"*]"
1499 echo "$msg"
1500 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1501 $cmd_chmod a+x "${gsdlhome}/bin/linux/"*
1502 msg="--> Install.sh: [$cmd_chmod -R u+rw \"${gsdlhome}/bin/linux\"]"
1503 echo "$msg"
1504 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1505 $cmd_chmod -R u+rw "${gsdlhome}/bin/linux"
1506
1507 # move library executable to cgi-bin
1508 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/library\" \"${gsdlhome}/cgi-bin\"]"
1509 echo "$msg"
1510 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1511 $cmd_mv "${gsdlhome}/bin/linux/library" "${gsdlhome}/cgi-bin"
1512
1513 # move oaiserver executable to cgi-bin
1514 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/oaiserver\" \"${gsdlhome}/cgi-bin\"]"
1515 echo "$msg"
1516 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1517 $cmd_mv "${gsdlhome}/bin/linux/oaiserver" "${gsdlhome}/cgi-bin"
1518
1519 # move XML.tgz to perllib/cpan and untar it (if we're using perl 5.8 or
1520 # greater we use a different tgz package since modules compiled for older
1521 # perls aren't binary compatible with newer ones)
1522 # xml_tgz="XML.tgz"
1523 # perl_version_major=`perl -v | sed -n 's/.*v\([0-9]*\).*/\1/p'`
1524 # perl_version_minor=`perl -v | sed -n 's/.*v[0-9]*\.\([0-9]*\).*/\1/p'`
1525 # perl_version_minor_minor=`perl -v | sed -n 's/.*v[0-9]*\.[0-9]*\.\([0-9]*\).*/\1/p'`
1526 # if [ $perl_version_major -eq 5 ] && [ $perl_version_minor -eq 8 ] && [ $perl_version_minor_minor -eq 0 ]; then
1527 # xml_tgz="XML-5.8.0.tgz"
1528 # elif [ $perl_version_major -ge 5 ] && [ $perl_version_minor -ge 8 ]; then
1529 # xml_tgz="XML-5.8.n.tgz"
1530 # fi
1531 # msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/bin/linux/${xml_tgz}\" \"${gsdlhome}/perllib/cpan\"]"
1532 # echo "$msg"
1533 # echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1534 # $cmd_mv "${gsdlhome}/bin/linux/${xml_tgz}" "${gsdlhome}/perllib/cpan"
1535 # cd "${gsdlhome}/perllib/cpan"
1536 # msg="--> Install.sh: [gzip -dc $xml_tgz | tar -xf -]"
1537 # echo "$msg"
1538 # echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1539 # gzip -dc $xml_tgz | tar -xf -
1540
1541 found="yes"
1542 elif [ "$ans" = "c" ]; then
1543 found="yes"
1544 fi
1545 done
1546fi
1547
1548if [ "$compile" = "yes" ]; then
1549 # install source
1550 msg="
1551$itext23
1552--> Install.sh: [$cmd_cpr \"${cd_dir}/src/lib\" \"$gsdlhome\"]"
1553 echo "$msg"
1554 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1555 $cmd_cpr "${cd_dir}/src/lib" "$gsdlhome"
1556 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/packages\" \"$gsdlhome\"]"
1557 echo "$msg"
1558 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1559 $cmd_cpr "${cd_dir}/src/packages" "$gsdlhome"
1560 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/src\" \"$gsdlhome\"]"
1561 echo "$msg"
1562 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1563 $cmd_cpr "${cd_dir}/src/src" "$gsdlhome"
1564 msg="--> Install.sh: [$cmd_cpr \"${cd_dir}/src/Unix/\"* \"$gsdlhome\"]"
1565 echo "$msg"
1566 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1567 $cmd_cpr "${cd_dir}/src/Unix/"* "$gsdlhome"
1568 msg="--> Install.sh: [$cmd_cp \"${cd_dir}/src/Install.txt\" \"$gsdlhome\"]"
1569 echo "$msg"
1570 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1571 $cmd_cp "${cd_dir}/src/Install.txt" "$gsdlhome"
1572 msg="--> Install.sh: [$cmd_chmod -R u+rw \"$gsdlhome\"]"
1573 echo "$msg"
1574 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1575 $cmd_chmod -R u+rw "$gsdlhome"
1576 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/configure\"]"
1577 echo "$msg"
1578 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1579 $cmd_chmod a+x "${gsdlhome}/configure"
1580 msg="--> Install.sh: [$cmd_chmod a+x \"${gsdlhome}/packages/yaz/configure\"]"
1581 echo "$msg"
1582 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1583 $cmd_chmod a+x "${gsdlhome}/packages/yaz/configure"
1584
1585 # compile it
1586 msg="--> Install.sh: [cd $gsdlhome]"
1587 echo "$msg"
1588 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1589 cd "$gsdlhome"
1590 msg="$itext24
1591
1592--> Install.sh: [./configure]"
1593 echo "$msg"
1594 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1595 ./configure
1596 msg="$itext25
1597
1598--> Install.sh: [make]"
1599 echo "$msg"
1600 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1601 $make
1602 msg="$itext26
1603
1604--> Install.sh: [make install]"
1605 echo "$msg"
1606 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1607 $make install
1608 msg="--> Install.sh: [cd $thisdir]"
1609 echo "$msg"
1610 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1611 cd "$thisdir"
1612
1613 # check that things compiled ok
1614 if [ ! -f "${gsdlhome}/cgi-bin/library" ]; then
1615 msg="$itext27
1616$itext0
1617$itext37"
1618 echo "$msg"
1619 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1620 exit 1
1621 fi
1622fi
1623
1624
1625# try to find out hostname
1626if [ "$gsdlos" = "linux" ]; then
1627 gsdlhost=`hostname -f`
1628 if [ "$gsdlhost" = "" ]; then
1629 gsdlhost=`hostname -i`
1630 fi
1631fi
1632if [ "$gsdlhost" = "" ]; then
1633 gsdlhost=`hostname`
1634fi
1635if [ "$gsdlhost" = "" ]; then
1636 gsdlhost="your-computer-name"
1637fi
1638
1639
1640# get cgi-bin directory
1641echo "$itext28"
1642echo "$itext28" >> "${gsdlhome}/INSTALL_RECORD"
1643if [ "$logname" != "root" ]; then
1644 echo "$itext29"
1645 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
1646fi
1647echo "$itext30"
1648echo "$itext30" >> "${gsdlhome}/INSTALL_RECORD"
1649if [ "$logname" != "root" ]; then
1650 echo "$itext31"
1651 echo "$itext31" >> "${gsdlhome}/INSTALL_RECORD"
1652fi
1653found=no
1654remind_cgi="no"
1655remind_cgi_nomove="no"
1656while [ "$found" = "no" ]; do
1657 echo "$itext32"
1658 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
1659 printf "%s" "> "
1660 read ans
1661 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1662 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
1663 found="option1"
1664 cgi_bin="${gsdlhome}/cgi-bin"
1665 # default gsdl cgi-bin, do nothing
1666
1667 echo "$itext33"
1668 echo "$itext33" >> "${gsdlhome}/INSTALL_RECORD"
1669 remind_cgi="yes"
1670 elif [ "$ans" = "2" ]; then
1671 found="option2"
1672 # external cgi-bin
1673
1674 echo "$itext34"
1675 echo "$itext34" >> "${gsdlhome}/INSTALL_RECORD"
1676 printf "%s" "> "
1677 read ans
1678 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1679 if [ "$ans" = "" ]; then
1680 cgi_bin="/usr/local/apache/cgi-bin"
1681 else
1682 cgi_bin="$ans"
1683 fi
1684
1685# ------------------------------------------------------------------------------
1686# MORE FRENCH STRINGS
1687# ------------------------------------------------------------------------------
1688if [ "$gsdllangcode" == "fr" ]; then
1689
1690 itext35="Avertissement: Le répertoire ${cgi_bin} n'existe pas.
1691Voulez-vous le créer? [y]"
1692
1693 itext36="N'oubliez pas de configurer votre serveur Web pour considérer
1694${gsdlhome}/cgi-bin comme le répertoire cgi exécutable. Ne vous en faites
1695pas, on vous le rappellera encore une fois à la fin la fin de la procédure
1696d'installation."
1697
1698 itext38="ERREUR: la création du répertoire $cgi_bin a échoué"
1699
1700 itext39="
1701Impossible d'écrire dans le répertoire $cgi_bin . Vous devrez copier le
1702contenu du répertoire ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin une
1703fois cette installation terminée. On vous le rappellera encore une fois à
1704la fin la fin de la procédure d'installation."
1705
1706 itext40="
1707Installation des programmes cgi Greenstone dans $cgi_bin"
1708
1709# ------------------------------------------------------------------------------
1710# MORE RUSSIAN STRINGS
1711# ------------------------------------------------------------------------------
1712elif [ "$gsdllangcode" == "ru" ]; then
1713
1714 itext35="ðÒÅÄÕÐÒÅÖÄÅÎÉÅ: ${cgi_bin} ÄÉÒÅËÔÏÒÉÑ ÎÅ ÓÕÝÅÓÔ×ÕÅÔ.
1715óÏÚÄÁÔØ ÅÅ? [y]"
1716
1717 itext36="îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁËÉÍ ÏÂÒÁÚÏÍ, ÞÔÏÂÙ
1718ÓÄÅÌÁÔØ $cgi_bin × ËÁÞÅÓÔ×Å cgi ×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÉ. îÅ ×ÏÌÎÕÊÔÅÓØ,
1719ÅÓÌÉ × ËÏÎÃÅ ÉÎÓÔÁÌÌÑÃÉÉ ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á."
1720
1721 itext38="ïûéâëá: ÎÅ ÕÄÁÌÏÓØ ÓÏÚÄÁÔØ ÄÉÒÅËÔÏÒÉÀ $cgi_bin"
1722
1723 itext39="
1724îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ÷ÁÍ ÎÅÏÂÈÏÄÉÍÏ ÓËÏÐÉÒÏ×ÁÔØ
1725ÓÏÄÅÒÖÁÎÉÅ ${gsdlhome}/cgi-bin × $cgi_bin ÐÏÓÌÅ ÞÅÇÏ ÉÎÓÔÁÌÌÑÃÉÑ ÂÕÄÅÔ
1726ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ ÓÎÏ×Á × ËÏÎÃÅ ÉÎÓÔÁÌÑÃÉÏÎÎÏÊ
1727ÐÒÏÃÅÄÕÒÙ."
1728
1729 itext40="
1730éÎÓÔÁÌÌÑÃÉÑ cgi-ÐÒÏÇÒÁÍÍÙ Greenstone × $cgi_bin"
1731
1732# ------------------------------------------------------------------------------
1733# MORE SPANISH STRINGS
1734# ------------------------------------------------------------------------------
1735elif [ "$gsdllangcode" == "es" ]; then
1736
1737 itext35="Advertencia: El directorio ${cgi_bin} no existe.
1738¿Desea crearlo? [y]"
1739
1740 itext36="No olvide configurar su servidor Web para que trate a $cgi_bin como
1741un directorio ejecutable cgi. No se preocupe, esto se le recordará
1742nuevamente al final del proceso de instalación."
1743
1744 itext38="ERROR: El directorio $cgi_bin no se pudo crear."
1745
1746 itext39="
1747No se puede escribir en el directorio $cgi_bin. Usted necesitará copiar
1748los contenidos de ${gsdlhome}/cgi-bin en $cgi_bin después de que la
1749instalación esté completa. Se le recordará esto nuevamente al final del
1750proceso de instalación."
1751
1752 itext40="
1753Instalación de los programas cgi de Greenstone en $cgi_bin"
1754
1755# ------------------------------------------------------------------------------
1756# MORE ENGLISH STRINGS
1757# ------------------------------------------------------------------------------
1758else
1759
1760 itext35="Warning: The ${cgi_bin} directory does not exist.
1761Create it? [y]"
1762
1763 itext36="Don't forget to configure your webserver to treat $cgi_bin
1764as a cgi executable directory. Don't worry, you'll be
1765reminded of this again at the end of the installation
1766procedure"
1767
1768 itext38="ERROR: failed to create $cgi_bin directory"
1769
1770 itext39="
1771Unable to write to $cgi_bin directory. You will need
1772to copy the contents of ${gsdlhome}/cgi-bin
1773to $cgi_bin after this installation is completed.
1774You'll be reminded of this again at the end of the
1775installation procedure."
1776
1777 itext40="
1778Installing Greenstone cgi programs in $cgi_bin"
1779
1780fi
1781
1782 if [ ! -d "$cgi_bin" ]; then
1783
1784 echo "$itext35"
1785 echo "$itext35" >> "${gsdlhome}/INSTALL_RECORD"
1786 printf "%s" "> "
1787 read ans
1788 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1789 if [ "$ans" = "" ] || [ "$ans" = "y" ]; then
1790 msg="--> Install.sh: [$cmd_mkdir \"$cgi_bin\"]"
1791 echo "$msg"
1792 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1793 $cmd_mkdir "$cgi_bin"
1794 if [ -d "$cgi_bin" ]; then
1795 echo "$itext36"
1796 echo "$itext36" >> "${gsdlhome}/INSTALL_RECORD"
1797 remind_cgi="yes"
1798 else
1799 msg="$itext38
1800$itext0
1801$itext37"
1802 echo "$msg"
1803 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1804 exit 1
1805 fi
1806 fi
1807 fi
1808
1809 if [ ! -w "$cgi_bin" ]; then
1810 echo "$itext39"
1811 echo "$itext39" >> "${gsdlhome}/INSTALL_RECORD"
1812 remind_cgi_nomove="yes"
1813 else
1814 # install cgi-bin stuff (update the uninstall script first)
1815 cd "$gsdlhome"
1816 echo "#!/bin/sh" > Uninstall.sh
1817 echo "" >> Uninstall.sh
1818 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
1819 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
1820 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
1821 echo "read ans" >> Uninstall.sh
1822 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
1823 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
1824 echo "fi" >> Uninstall.sh
1825 $cmd_chmod u+x Uninstall.sh
1826 cd "$thisdir"
1827
1828 msg="$itext40
1829--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/gsdlsite.cfg\" \"$cgi_bin\"]"
1830 echo "$msg"
1831 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1832 $cmd_mv "${gsdlhome}/cgi-bin/gsdlsite.cfg" "$cgi_bin"
1833 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/library\" \"$cgi_bin\"]"
1834 echo "$msg"
1835 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1836 $cmd_mv "${gsdlhome}/cgi-bin/library" "$cgi_bin"
1837 msg="--> Install.sh: [$cmd_mv \"${gsdlhome}/cgi-bin/oaiserver\" \"$cgi_bin\"]"
1838 echo "$msg"
1839 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1840 $cmd_mv "${gsdlhome}/cgi-bin/oaiserver" "$cgi_bin"
1841 fi
1842 fi
1843done
1844
1845# web address of cgi-bin
1846web_cgi="http://${gsdlhost}/cgi-bin"
1847if [ "$found" = "option1" ]; then
1848 web_cgi="http://${gsdlhost}/gsdl/cgi-bin"
1849fi
1850
1851# ------------------------------------------------------------------------------
1852# MORE FRENCH STRINGS
1853# ------------------------------------------------------------------------------
1854if [ "$gsdllangcode" == "fr" ]; then
1855
1856 itext41="
1857Veuillez entrer l'adresse Web du répertoire $cgi_bin. En général, c'est
1858http://localhost/cgi-bin, ou http://127.0.0.1/cgi-bin, ou
1859http://votre-ordinateur-nom/cgi-bin, ou http://nnn.nnn.nnn.nn/cgi-bin.
1860[$web_cgi]"
1861
1862# ------------------------------------------------------------------------------
1863# MORE RUSSIAN STRINGS
1864# ------------------------------------------------------------------------------
1865elif [ "$gsdllangcode" == "ru" ]; then
1866
1867 itext41="
1868ðÏÖÁÌÕÊÓÔÁ, ××ÅÄÉÔÅ ÷ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $cgi_bin. ïÂÙÞÎÏ ÜÔÏ ÍÏÖÅÔ
1869ÂÙÔØ http://localhost/cgi-bin, ÉÌÉ http://127.0.0.1/cgi-bin, ÉÌÉ
1870http://your-computer-name/cgi-bin ÉÌÉ http://nnn.nnn.nnn.nn/cgi-bin.
1871[$web_cgi]."
1872
1873# ------------------------------------------------------------------------------
1874# MORE SPANISH STRINGS
1875# ------------------------------------------------------------------------------
1876elif [ "$gsdllangcode" == "es" ]; then
1877
1878 itext41="
1879Por favor ingrese la dirección Web del directorio $cgi_bin. En términos
1880generales éste puede ser http://localhost/cgi-bin,
1881http://127.0.0.1/cgi-bin, http://your-computer-name/cgi-bin o
1882http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
1883
1884# ------------------------------------------------------------------------------
1885# MORE ENGLISH STRINGS
1886# ------------------------------------------------------------------------------
1887else
1888
1889 itext41="
1890Please enter the web address of the $cgi_bin
1891directory. Typically this might be http://localhost/cgi-bin,
1892or http://127.0.0.1/cgi-bin, or http://your-computer-name/cgi-bin,
1893or http://nnn.nnn.nnn.nn/cgi-bin. [$web_cgi]"
1894
1895fi
1896
1897echo "$itext41"
1898echo "$itext41" >> "${gsdlhome}/INSTALL_RECORD"
1899printf "%s" "> "
1900read ans
1901echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1902if [ "$ans" != "" ]; then
1903 web_cgi="$ans"
1904fi
1905
1906# get public_html directory
1907echo "$itext42"
1908echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
1909if [ "$logname" != "root" ]; then
1910 echo "$itext29"
1911 echo "$itext29" >> "${gsdlhome}/INSTALL_RECORD"
1912fi
1913echo "$itext43"
1914echo "$itext43" >> "${gsdlhome}/INSTALL_RECORD"
1915if [ "$logname" != "root" ]; then
1916 echo "$itext44"
1917 echo "$itext44" >> "${gsdlhome}/INSTALL_RECORD"
1918fi
1919echo "$itext45"
1920echo "$itext45" >> "${gsdlhome}/INSTALL_RECORD"
1921found="no"
1922remind_ph="no"
1923remind_ph_nolink="no"
1924while [ "$found" = "no" ]; do
1925 echo "$itext32"
1926 echo "$itext32" >> "${gsdlhome}/INSTALL_RECORD"
1927 printf "%s" "> "
1928 read ans
1929 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1930 if [ "$ans" = "" ] || [ "$ans" = "1" ]; then
1931 found="yes"
1932 public_html="$gsdlhome"
1933 # no link
1934 echo "$itext46"
1935 echo "$itext46" >> "${gsdlhome}/INSTALL_RECORD"
1936 remind_ph="yes"
1937 elif [ "$ans" = "2" ]; then
1938 found="yes"
1939 # external public_html
1940 echo
1941 public_html="/home/${logname}/public_html"
1942 if [ "$logname" = "root" ]; then
1943 public_html="/usr/local/apache/htdocs"
1944 fi
1945
1946# ------------------------------------------------------------------------------
1947# MORE FRENCH STRINGS
1948# ------------------------------------------------------------------------------
1949if [ "$gsdllangcode" == "fr" ]; then
1950
1951 itext47="Entrez le répertoire qui est accessible à partir du Web [${public_html}]"
1952
1953# ------------------------------------------------------------------------------
1954# MORE RUSSIAN STRINGS
1955# ------------------------------------------------------------------------------
1956elif [ "$gsdllangcode" == "ru" ]; then
1957
1958 itext47="÷×ÅÄÉÔÅ ÄÉÒÅËÔÏÒÉÀ, ËÏÔÏÒÁÑ Ñ×ÌÑÅÔÓÑ ÔÁËÖÅ ÄÏÓÔÕÐÎÏÊ ÉÚ ÓÅÔÉ [${public_html}]"
1959
1960# ------------------------------------------------------------------------------
1961# MORE SPANISH STRINGS
1962# ------------------------------------------------------------------------------
1963elif [ "$gsdllangcode" == "es" ]; then
1964
1965 itext47="Ingrese un directorio que también sea accesible desde la Web [${public_html}]"
1966
1967# ------------------------------------------------------------------------------
1968# MORE ENGLISH STRINGS
1969# ------------------------------------------------------------------------------
1970else
1971
1972 itext47="Enter directory that is also accessible from the web [${public_html}]"
1973
1974fi
1975
1976 echo "$itext47"
1977 echo "$itext47" >> "${gsdlhome}/INSTALL_RECORD"
1978 printf "%s" "> "
1979 read ans
1980 echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
1981 if [ "$ans" != "" ]; then
1982 public_html="$ans"
1983 fi
1984
1985# ------------------------------------------------------------------------------
1986# MORE FRENCH STRINGS
1987# ------------------------------------------------------------------------------
1988if [ "$gsdllangcode" == "fr" ]; then
1989
1990 itext48="
1991Impossible d'écrire dans le répertoire $public_html. Vous devrez créer un
1992lien symbolique appelé gsdl de $public_html vers $gsdlhome après cette
1993installation. On vous le rappellera encore une fois à la fin de la
1994procédure d'installation."
1995
1996# ------------------------------------------------------------------------------
1997# MORE RUSSIAN STRINGS
1998# ------------------------------------------------------------------------------
1999elif [ "$gsdllangcode" == "ru" ]; then
2000
2001 itext48="
2002îÅ×ÏÚÍÏÖÎÏ ÐÉÓÁÔØ × ÄÉÒÅËÔÏÒÉÀ $public_html. ÷ÁÍ ÂÕÄÅÔ ÎÅÏÂÈÏÄÉÍÏ
2003ÓÏÚÄÁÔØ Ó×ÑÚØ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ $public_html Ë $gsdlhome ÐÏÓÌÅ
2004ÔÏÇÏ, ËÁË ÜÔÁ ÉÎÓÔÁÌÌÑÃÉÑ ÚÁËÏÎÞÅÎÁ. ÷ÁÍ ÂÕÄÅÔ ÎÁÐÏÍÎÅÎÏ Ï ÜÔÏÍ
2005ÓÎÏ×Á × ËÏÎÃÅ ÐÒÏÃÅÄÕÒÙ ÉÎÓÔÁÌÌÑÃÉÉ."
2006
2007# ------------------------------------------------------------------------------
2008# MORE SPANISH STRINGS
2009# ------------------------------------------------------------------------------
2010elif [ "$gsdllangcode" == "es" ]; then
2011
2012 itext48="
2013No se puede escribir en el directorio $public_html. Usted necesita
2014crear un vínculo llamado gsdl de $public_html a $gsdlhome después de
2015terminar la instalación. Se le recordará esto nuevamente al final del
2016proceso de instalación."
2017
2018# ------------------------------------------------------------------------------
2019# MORE ENGLISH STRINGS
2020# ------------------------------------------------------------------------------
2021else
2022
2023 itext48="
2024Unable to write to $public_html directory. You will need
2025to create a link called gsdl from $public_html to
2026$gsdlhome after this installation is completed. You'll be
2027reminded of this again at the end of the installation
2028procedure."
2029
2030fi
2031
2032 # create link to gsdl (and update Uninstall.sh)
2033 if [ -w "$public_html" ]; then
2034 cd "$gsdlhome"
2035 echo "#!/bin/sh" > Uninstall.sh
2036 echo "" >> Uninstall.sh
2037 echo "$cmd_rm \"$public_html/gsdl\"" >> Uninstall.sh
2038 echo "$cmd_rm \"${cgi_bin}/gsdlsite.cfg\"" >> Uninstall.sh
2039 echo "$cmd_rm \"${cgi_bin}/library\"" >> Uninstall.sh
2040 echo "echo \"remove ${gsdlhome} directory? [y]\"" >> Uninstall.sh
2041 echo "read ans" >> Uninstall.sh
2042 echo "if [ \"\$ans\" = \"\" ] || [ \"\$ans\" = \"y\" ]; then" >> Uninstall.sh
2043 echo " $cmd_rmr \"$gsdlhome\"" >> Uninstall.sh
2044 echo "fi" >> Uninstall.sh
2045 $cmd_chmod u+x Uninstall.sh
2046 cd "$thisdir"
2047
2048 msg="--> Install.sh: [cd \"$public_html\"]"
2049 echo "$msg"
2050 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2051 cd "$public_html"
2052 msg="--> Install.sh: [$cmd_ln \"$gsdlhome\" gsdl]"
2053 echo "$msg"
2054 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2055 $cmd_ln "$gsdlhome" gsdl
2056 msg="--> Install.sh: [cd \"$thisdir\"]"
2057 echo "$msg"
2058 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2059 cd "$thisdir"
2060 else
2061 echo "$itext48"
2062 echo "$itext48" >> "${gsdlhome}/INSTALL_RECORD"
2063 old_ph=$public_html
2064 remind_ph_nolink="yes"
2065 fi
2066 public_html="${public_html}/gsdl"
2067 fi
2068done
2069
2070# ------------------------------------------------------------------------------
2071# MORE FRENCH STRINGS
2072# ------------------------------------------------------------------------------
2073if [ "$gsdllangcode" == "fr" ]; then
2074
2075 itext49="
2076Entrez l'adresse Web du répertoire $public_html. Elle peut être un url
2077relatif (c.a.d. \"/gsdl\") ou un url complet (c.a.d.
2078\"http://${gsdlhost}/gsdl\") [/gsdl]"
2079
2080 itext50="
2081Un mot de passe est nécessaire pour pouvoir utiliser des collections
2082construites par des utilisateurs finaux ou pour afficher des pages
2083permettant l'administration.
2084Un utilisateur ayant pour nom utilisateur \"admin\" sera créé avec le
2085mot de passe que vous allez entrer (c.a.d. que pour afficher les pages
2086qui nécessite d'authentifier l'utilisateur, vous devrez entrer \"admin\"
2087comme nom d'utilisateur et le mot de passe que vous allez donner ici).
2088"
2089
2090 itext51="
2091
2092L'installation de Greenstone a réussi."
2093
2094 itext52=" * N'oubliez pas de configurer le serveur Web pour considérer le
2095 répertoire $cgi_bin comme étant le répertoire des exécutables cgi."
2096
2097 itext53=" Pour le serveur Apache, vous devrez ajouter la directive
2098 ScriptAlias suivante dans le fichier de configuration httpd.conf"
2099
2100 itext54=" * N'oubliez pas de déplacer le contenu du répertoire
2101 ${gsdlhome}/cgi-bin dans le répertoire $cgi_bin
2102"
2103
2104 itext55=" * N'oubliez pas de configurer le serveur Web pour considérer le
2105 répertoire $gsdlhome comme accessible par le Web."
2106
2107 itext56=" Pour le serveur Apache, vous devrez ajouter au fichier de
2108 configuration httpd.conf la directive Alias suivante."
2109
2110 itext57=" N'oubliez pas de créer un lien symbolique appelé gsdl de $old_ph
2111 vers ${gsdlhome}.
2112"
2113
2114 itext58="Les messages affichés lors de l'exécution de ce script ont été enregistré
2115dans ${gsdlhome}/INSTALL_RECORD.
2116Vous pouvez enlever Greenstone de votre ordinateur à tout moment en
2117exécutant le script ${gsdlhome}/Uninstall.sh.
2118Utilisez Greenstone en rentrant l'adresse ${web_cgi}/library
2119dans votre navigateur.
2120"
2121
2122# ------------------------------------------------------------------------------
2123# MORE RUSSIAN STRINGS
2124# ------------------------------------------------------------------------------
2125elif [ "$gsdllangcode" == "ru" ]; then
2126
2127 itext49="
2128÷×ÅÄÉÔÅ ×ÅÂ-ÁÄÒÅÓ ÄÉÒÅËÔÏÒÉÉ $public_html. üÔÏ ÍÏÖÅÔ ÂÙÔØ
2129ÏÔÎÏÓÉÔÅÌØÎÙÊ URL (ÎÁÐÒÉÍÅÒ, \"/gsdl\") ÉÌÉ ÖÅ ÐÏÌÎÙÊ URL
2130(ÎÁÐÒÉÍÅÒ, \"http://${gsdlhost}/gsdl\") [/gsdl]"
2131
2132 itext50="
2133þÔÏÂÙ ÉÓÐÏÌØÚÏ×ÁÔØ ÐÏÓÔÒÏÅÎÉÅ ËÏÌÌÅËÃÉÉ ËÏÎÅÞÎÏÇÏ ÐÏÌØÚÏ×ÁÔÅÌÑ ÉÌÉ
2134ÉÍÅÔØ Õ×ÅÒÅÎÎÙÊ ÄÏÓÔÕÐ Ë ÞÁÓÔÉ ÁÄÍÉÎÉÓÔÒÁÔÉ×ÎÙÈ ÓÔÒÁÎÉÃ, ÷ÁÍ
2135ÎÅÏÂÈÏÄÉÍÏ ÉÍÅÔØ ÐÁÒÏÌØ. ðÏÌØÚÏ×ÁÔÅÌØ Ó ÉÍÅÎÅÍ \"admin\" ÂÕÄÅÔ
2136ÓÏÚÄÁÎ ÄÌÑ ÷ÁÓ Ó ÐÁÒÏÌÅÍ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÔÅ (ÔÏ ÅÓÔØ ÄÌÑ ×ÈÏÄÁ
2137× ÌÀÂÙÅ ÓÔÒÁÎÉÃÙ, ÔÒÅÂÕÀÝÉÅ ÁÕÔÅÎÔÉÆÉËÁÃÉÉ ÐÏÌØÚÏ×ÁÔÅÌÑ, ××ÅÄÉÔÅ
2138ÉÍÑ ÐÏÌØÚÏ×ÁÔÅÌÑ \"admin\" É ÐÁÒÏÌØ, ËÏÔÏÒÙÊ ÷Ù ÎÁÚÎÁÞÉÌÉ).
2139"
2140
2141 itext51="
2142
2143õÓÔÁÎÏ×ËÁ Greenstone ÚÁËÏÎÞÅÎÁ ÕÓÐÅÛÎÏ."
2144
2145 itext52=" * îÅ ÚÁÂÕÄØÔÅ ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ ÔÁË,
2146 ÞÔÏÂÙ $cgi_bin Ñ×ÌÑÌÁÓØ cgi-×ÙÐÏÌÎÉÍÏÊ ÄÉÒÅËÔÏÒÉÅÊ."
2147
2148 itext53=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
2149 ÓÌÅÄÕÀÝÅÊ ÄÉÒÅËÔÉ×Ù ScriptAlias Ë ÷ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ
2150 ÆÁÊÌÕ httpd.conf."
2151
2152 itext54=" * îÅ ÚÁÂÕÄØÔÅ ÐÅÒÅÍÅÓÔÉÔØ ÓÏÄÅÒÖÁÎÉÅ
2153 ${gsdlhome}/cgi-bin × $cgi_bin.
2154"
2155
2156 itext55=" * îÅ ÚÁÂÕÄØÔÅ ÔÁË ÓËÏÎÆÉÇÕÒÉÒÏ×ÁÔØ ÷ÁÛ ÷ÅÂ-ÓÅÒ×ÅÒ
2157 ÔÁË, ÞÔÏÂÙ ÄÉÒÅËÔÏÒÉÑ $gsdlhome ÂÙÌÁ ÄÏÓÔÕÐÎÁ ÉÚ ÓÅÔÉ."
2158
2159 itext56=" äÌÑ ÷ÅÂ-ÓÅÒ×ÅÒÁ Apache ÜÔÏ ÏÚÎÁÞÁÅÔ ÄÏÂÁ×ÌÅÎÉÅ
2160 ÄÉÒÅËÔÉ×Ù Alias Ë ×ÁÛÅÍÕ ËÏÎÆÉÇÕÒÁÃÉÏÎÎÏÍÕ ÆÁÊÌÕ httpd.conf."
2161
2162 itext57=" * îÅ ÚÁÂÕÄØÔÅ ÓÏÚÄÁÔØ ÓÓÙÌËÕ, ÎÁÚÙ×ÁÅÍÕÀ gsdl, ÏÔ
2163 $old_ph Ë ${gsdlhome}.
2164"
2165
2166 itext58="÷ÙÈÏÄ ÜÔÏÇÏ ÓËÒÉÐÔÁ ÂÙÌ ÚÁÐÉÓÁÎ ÄÌÑ ÷ÁÓ ×
2167${gsdlhome}/INSTALL_RECORD.
2168÷Ù ÍÏÖÅÔÅ ÕÄÁÌÉÔØ Greenstone ÉÚ ÷ÁÛÅÊ ÓÉÓÔÅÍÙ × ÌÀÂÏÅ ×ÒÅÍÑ,
2169××ÅÄÑ ÓËÒÉÐÔ ${gsdlhome}/Uninstall.sh.
2170äÏÓÔÕÐ Ë Greenstone ÕËÁÚÁÎÉÅÍ ÷ÅÂ-ÂÒÁÕÚÅÒÁ × ${web_cgi}/library.
2171"
2172
2173# ------------------------------------------------------------------------------
2174# MORE SPANISH STRINGS
2175# ------------------------------------------------------------------------------
2176elif [ "$gsdllangcode" == "es" ]; then
2177
2178 itext49="
2179Ingrese la dirección Web del directorio $public_html. Ésta puede ser
2180un url relativo (p. ej. \"/gsdl\") o un url completo (p. ej.
2181\"http://${gsdlhost}/gsdl\") [/gsdl]"
2182
2183 itext50="
2184Con el fin de usar la función que le permite al usuario final crear una
2185colección o para tener acceso a ciertas partes de las páginas de
2186administración usted deberá contar con una contraseña. Se creará para
2187usted un usuario con el nombre \"admin\" y la contraseña que usted
2188elija (es decir, para ingresar a las páginas que requieran de
2189autenticación de usuario ingrese el nombre del usuario \"admin\" y la
2190contraseña que usted haya elegido).
2191"
2192
2193 itext51="
2194
2195La instalación de Greenstone se realizó con éxito."
2196
2197 itext52=" * No olvide configurar su servidor Web para que trate a $cgi_bin
2198 como un directorio ejecutable cgi."
2199
2200 itext53=" En el caso del servidor Apache esto significa añadir la siguiente
2201 directiva ScriptAlias a su archivo de configuración httpd.conf."
2202
2203 itext54=" * No olvide mover los contenidos de ${gsdlhome}/cgi-bin a $cgi_bin.
2204"
2205
2206 itext55=" * No olvide configurar su servidor Web para que trate a $gsdlhome
2207 como un directorio accesible desde la Web."
2208
2209 itext56=" En el caso del servidor Apache esto significa añadir la siguiente
2210 directiva Alias a su archivo de configuración httpd.conf."
2211
2212 itext57=" * No olvide crear un vínculo llamado gsdl de $old_ph a ${gsdlhome}.
2213"
2214
2215 itext58="Los resultados de este guión han sido registrados para su uso
2216posterior en ${gsdlhome}/INSTALL_RECORD.
2217Usted podrá quitar el programa Greenstone de su sistema en cualquier
2218momento que lo desee con solo ejecutar el guión
2219${gsdlhome}/Uninstall.sh.
2220Para tener acceso a Greenstone apunte el navegador hacia
2221${web_cgi}/library.
2222"
2223
2224# ------------------------------------------------------------------------------
2225# MORE ENGLISH STRINGS
2226# ------------------------------------------------------------------------------
2227else
2228
2229 itext49="
2230Enter the web address of the $public_html directory.
2231This may be a relative url (e.g. \"/gsdl\") or a
2232complete url (e.g. \"http://${gsdlhost}/gsdl\") [/gsdl]"
2233
2234 itext50="
2235In order to use end-user collection building or to access certain
2236parts of the administration pages you must have a password.
2237A user with the username \"admin\" will be created for you with
2238the password you provide (i.e. to enter any pages requiring user
2239authentication enter the \"admin\" username and the password you
2240set here).
2241"
2242
2243 itext51="
2244
2245Greenstone installation completed successfully."
2246
2247 itext52=" * Don't forget to configure your webserver to treat
2248 $cgi_bin as a cgi executable directory."
2249
2250 itext53=" For the Apache webserver this means adding the following
2251 ScriptAlias directive to your httpd.conf configuration file."
2252
2253 itext54=" * Don't forget to move the contents of ${gsdlhome}/cgi-bin
2254 to $cgi_bin
2255"
2256
2257 itext55=" * Don't forget to configure your webserver to treat
2258 $gsdlhome as a web accessible directory."
2259
2260 itext56=" For the Apache webserver this means adding the following
2261 Alias directive to your httpd.conf configuration file."
2262
2263 itext57=" * Don't forget to create a link called gsdl from $old_ph
2264 to ${gsdlhome}.
2265"
2266
2267 itext58="The output of this script has been recorded for you at
2268${gsdlhome}/INSTALL_RECORD.
2269You may remove Greenstone from your system at any time by running
2270the ${gsdlhome}/Uninstall.sh script.
2271Access Greenstone by pointing a web browser at
2272${web_cgi}/library
2273"
2274
2275fi
2276
2277# get httpprefix
2278echo "$itext49"
2279echo "$itext49" >> "${gsdlhome}/INSTALL_RECORD"
2280printf "%s" ">"
2281httpprefix="/gsdl"
2282read ans
2283echo "> $ans" >> "${gsdlhome}/INSTALL_RECORD"
2284if [ "$ans" != "" ]; then
2285 httpprefix="$ans"
2286fi
2287
2288# get initial password
2289echo "$itext50"
2290echo "$itext50" >> "${gsdlhome}/INSTALL_RECORD"
2291pw=`"${gsdlhome}/bin/${gsdlos}/getpw"`
2292tmp="[admin]
2293<comment>
2294<enabled>true
2295<groups>administrator,colbuilder
2296<password>${pw}
2297<username>admin
2298----------------------------------------------------------------------"
2299echo "$tmp" | ${gsdlhome}/bin/${gsdlos}/txt2db "${gsdlhome}/etc/users.db"
2300$cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2301
2302# add the dummy "demo" user with "demo" password for the authen-e collection (CD-ROM only)
2303if [ $iscdrom = "yes" ]; then
2304 cat ${gsdlhome}/etc/demouser.txt | ${gsdlhome}/bin/${gsdlos}/txt2db -append "${gsdlhome}/etc/users.db"
2305 $cmd_chmod a+rw "${gsdlhome}/etc/users.db"
2306fi
2307
2308# set the default setup script language to be the installation language
2309cd "$gsdlhome"
2310sed "s|gsdllang=\"\"|gsdllang=\"${gsdllangcode}\"|" setup.bash > tmp123.txt && $cmd_mv tmp123.txt setup.bash
2311sed "s|setenv GSDLLANG .*|setenv GSDLLANG ${gsdllangcode}|" setup.csh > tmp123.txt && $cmd_mv tmp123.txt setup.csh
2312$cmd_chmod a+x setup.*
2313
2314# set the default interface language to be the installation language
2315echo >> etc/main.cfg
2316echo "cgiarg shortname=l argdefault=$gsdllangcode" >> etc/main.cfg
2317
2318# create a symbolic link "strings.rb" to the appropriate resource bundle
2319cd "$gsdlhome/perllib"
2320$cmd_ln "strings_$gsdllangcode.rb" strings.rb
2321
2322# set the GLI script language to be the installation language
2323cd "$gsdlhome/gli"
2324sed "s|glilang=.*|glilang=$gsdllangcode|" clean.sh > tmp123.txt && $cmd_mv tmp123.txt clean.sh
2325sed "s|glilang=.*|glilang=$gsdllangcode|" document.sh > tmp123.txt && $cmd_mv tmp123.txt document.sh
2326sed "s|glilang=.*|glilang=$gsdllangcode|" gli.sh > tmp123.txt && $cmd_mv tmp123.txt gli.sh
2327sed "s|glilang=.*|glilang=$gsdllangcode|" makegli.sh > tmp123.txt && $cmd_mv tmp123.txt makegli.sh
2328$cmd_chmod a+x *.sh
2329$cmd_rm -f *.bat
2330
2331# set the default GLI interface language to be the installation language
2332sed "s|Argument name=\"general.locale\">.*<|Argument name=\"general.locale\">$gsdllangcode<|" classes/xml/config.xml > tmp123.txt && $cmd_mv tmp123.txt classes/xml/config.xml
2333
2334# edit gsdlsite.cfg
2335cd "$cgi_bin"
2336sed "s|\(gsdlhome *\)[^ ]*|\1\"${gsdlhome}\"|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2337sed "s|#*\(httpprefix *\)[^ ]*|\1${httpprefix}|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2338sed "s|\(httpimg *\)[^ ]*|\1${httpprefix}/images|" gsdlsite.cfg > tmp123.txt && $cmd_mv tmp123.txt gsdlsite.cfg
2339
2340# success
2341echo "$itext51"
2342echo "$itext51" >> "${gsdlhome}/INSTALL_RECORD"
2343if [ "$remind_cgi" = "yes" ]; then
2344 echo "$itext52"
2345 echo "$itext52" >> "${gsdlhome}/INSTALL_RECORD"
2346
2347 apache_web_cgi=`echo "$web_cgi" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2348 cgi_bin_slash=`echo "$cgi_bin" | sed "s|/*$|/|"`
2349 cgi_bin_noslash=`echo "$cgi_bin" | sed "s|/*$||"`
2350
2351 msg="$itext53
2352
2353 ScriptAlias ${apache_web_cgi} \"${cgi_bin_slash}\"
2354 <Directory \"${cgi_bin_noslash}\">
2355 AllowOverride None
2356 Options None
2357 Order allow,deny
2358 Allow from all
2359 </Directory>
2360"
2361 echo "$msg"
2362 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2363fi
2364if [ "$remind_cgi_nomove" = "yes" ]; then
2365 echo "$itext54"
2366 echo "$itext54" >> "${gsdlhome}/INSTALL_RECORD"
2367fi
2368if [ "$remind_ph" = "yes" ]; then
2369 echo "$itext55"
2370 echo "$itext55" >> "${gsdlhome}/INSTALL_RECORD"
2371
2372 apache_httpprefix=`echo "$httpprefix" | sed "s|[^/]*//[^/]*||" | sed "s|/*$|/|"`
2373 public_html_slash=`echo "$public_html" | sed "s|/*$|/|"`
2374 public_html_noslash=`echo "$public_html" | sed "s|/*$||"`
2375
2376 msg="$itext56
2377
2378 Alias ${apache_httpprefix} \"${public_html_slash}\"
2379 <Directory \"${public_html_noslash}\">
2380 Options Indexes MultiViews FollowSymLinks
2381 AllowOverride None
2382 Order allow,deny
2383 Allow from all
2384 </Directory>
2385"
2386 echo "$msg"
2387 echo "$msg" >> "${gsdlhome}/INSTALL_RECORD"
2388fi
2389if [ "$remind_ph_nolink" = "yes" ]; then
2390 echo "$itext57"
2391 echo "$itext57" >> "${gsdlhome}/INSTALL_RECORD"
2392fi
2393echo "$itext58"
2394echo "$itext58" >> "${gsdlhome}/INSTALL_RECORD"
2395
2396# write VERSION file for automatic updating in the future
2397echo "Version: 2.52" > "${gsdlhome}/VERSION"
2398if [ "$iscdrom" = "yes" ]; then
2399 echo "Media: CD" >> "${gsdlhome}/VERSION"
2400else
2401 echo "Media: Web" >> "${gsdlhome}/VERSION"
2402fi
2403echo "OS: $gsdlos" >> "${gsdlhome}/VERSION"
2404echo "Language: $gsdllangcode" >> "${gsdlhome}/VERSION"
2405if [ "$docs" = "yes" ]; then
2406 echo "Option: Documentation" >> "${gsdlhome}/VERSION"
2407fi
2408if [ "$export" = "yes" ]; then
2409 echo "Option: Export to CD" >> "${gsdlhome}/VERSION"
2410fi
2411if [ "$compile" = "yes" ]; then
2412 echo "Option: Web Library" >> "${gsdlhome}/VERSION"
2413else
2414 echo "Option: Source" >> "${gsdlhome}/VERSION"
2415fi
2416
2417exit 0
Note: See TracBrowser for help on using the repository browser.