root/gsdl/trunk/Install.sh @ 18430

Revision 15174, 80.9 KB (checked in by kjdon, 11 years ago)

changed the version number to svn-trunk. This will get changed to a release number when a release is created

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