source: gsdl/branches/2.75/Install.sh@ 14768

Last change on this file since 14768 was 14768, checked in by oranfry, 16 years ago

checking-in version number changes

  • Property svn:executable set to *
  • Property svn:mime-type set to application/octet-stream
File size: 94.0 KB
Line 
1#!/bin/sh
2
3## Install.sh -- Install Greenstone
4
5
6# set iscdrom variable to "yes" for a cdrom installation
7iscdrom="yes"
8
9# This string will always be in English so is not translated
10echo "Which version of Greenstone do you want installed: "
11echo "[E]nglish, (F)rench, (R)ussian or (S)panish?"
12printf "%s" "> "
13read gsdllang
14gsdllang=`echo $gsdllang | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
15
16
17# ------------------------------------------------------------------------------
18# FRENCH STRINGS
19# ------------------------------------------------------------------------------
20if [ "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: 2.75" > "${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 repository browser.