source: branches/gsdl-2_70-distribution-branch/gsdl/Install.sh@ 11729

Last change on this file since 11729 was 11729, checked in by cvs_anon, 18 years ago

changed version number

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