Subversion Repositories lagranto.um

Rev

Rev 5 | Rev 9 | Go to most recent revision | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5 Rev 7
1
#!/bin/csh
1
#!/bin/csh
2
 
2
 
3
# -----------------------------------------------------------------------------
3
# -----------------------------------------------------------------------------
4
# Set some general parameters
4
# Set some general parameters
5
# -----------------------------------------------------------------------------
5
# -----------------------------------------------------------------------------
6
 
6
 
7
# Usage
7
# Usage
8
if ( $#argv == 0 ) then
8
if ( $#argv == 0 ) then
9
  echo "install.sh [lib|core|goodies|links|all|docu|clean] "
9
  echo "install.sh [lib|core|goodies|links|all|docu|clean] "
10
  exit 0
10
  exit 0
11
endif
11
endif
12
 
12
 
13
# Set the mode
13
# Set the mode
14
set mode = $1
14
set mode = $1
15
 
15
 
16
# Set path to SVN repository
16
# Set path to SVN repository
17
set svnpath=https://svn.iac.ethz.ch/pub/lagranto.um/
17
set svnpath=https://svn.iac.ethz.ch/pub/lagranto.um/
18
 
18
 
19
# Set paths for development and for synchronisation (operational)
19
# Set paths for development and for synchronisation (operational)
20
set path_devel = '/home/sprenger/project/lagranto.um/'
20
set path_devel = '/home/sprenger/project/lagranto.um/'
21
 
21
 
22
# Init Fortran compiler and set netCDF acccordingly
22
# Init Fortran compiler and set netCDF acccordingly
23
setenv FORTRAN pgf90
23
setenv FORTRAN pgf90
24
 
24
 
25
# Init netCDF library depending on the Fortran compiler
25
# Init netCDF library depending on the Fortran compiler
26
if ( "${FORTRAN}" == "pgf90" ) then
26
if ( "${FORTRAN}" == "pgf90" ) then
27
  module load netcdf/4.2.1-pgf90
27
  module load netcdf/4.2.1-pgf90
28
  module list
28
  module list
29
 
29
 
30
else if ( "${FORTRAN}" == "gfortran" ) then
30
else if ( "${FORTRAN}" == "gfortran" ) then
31
  module load gfortran
31
  module load gfortran
32
  module load netcdf/4.1.1
32
  module load netcdf/4.1.1
33
 
33
 
34
else if ( "${FORTRAN}" == "ifort" ) then
34
else if ( "${FORTRAN}" == "ifort" ) then
35
  module load ifort/10.1.017
35
  module load ifort/10.1.017
36
  module load netcdf/4.1.1-ifort
36
  module load netcdf/4.1.1-ifort
37
 
37
 
38
else
38
else
39
  echo "Fortran Compiler ${FORTRAN} not supported... Exit"
39
  echo "Fortran Compiler ${FORTRAN} not supported... Exit"
40
  exit 1
40
  exit 1
41
 
41
 
42
endif
42
endif
43
 
43
 
44
# Set Lagranto path
44
# Set Lagranto path
45
setenv LAGRANTO ${path_devel}
45
setenv LAGRANTO ${path_devel}
46
 
46
 
47
# -----------------------------------------------------------------------------
47
# -----------------------------------------------------------------------------
48
# Create a new tag in SVN repository
48
# Create a new tag in SVN repository
49
# -----------------------------------------------------------------------------
49
# -----------------------------------------------------------------------------
50
 
50
 
51
if ( "${mode}" == "tag" ) then
51
if ( "${mode}" == "tag" ) then
52
   svn info
52
   svn info
53
   if ( "${#argv}" != 2 ) then
53
   if ( "${#argv}" != 2 ) then
54
     echo "Usage: install.csh tag id <id=tag number>"
54
     echo "Usage: install.csh tag id <id=tag number>"
55
   else
55
   else
56
     set tagnr = $2
56
     set tagnr = $2
57
   endif
57
   endif
58
   svn copy ${svnpath}/trunk ${svnpath}/tags/${tagnr} -m "Release ${tagnr}"
58
   svn copy ${svnpath}/trunk ${svnpath}/tags/${tagnr} -m "Release ${tagnr}"
59
   exit 0
59
   exit 0
60
endif
60
endif
61
 
61
 
62
# -----------------------------------------------------------------------------
62
# -----------------------------------------------------------------------------
63
# Set internal parameters and detailed installation mode
63
# Set internal parameters and detailed installation mode
64
# -----------------------------------------------------------------------------
64
# -----------------------------------------------------------------------------
65
 
65
 
66
# Set Lagranto path
66
# Set Lagranto path
67
setenv LAGRANTO ${path_devel}
67
setenv LAGRANTO ${path_devel}
68
 
68
 
69
# Set netCDF paths
69
# Set netCDF paths
70
setenv NETCDF_LIB `nc-config --flibs`
70
setenv NETCDF_LIB `nc-config --flibs`
71
setenv NETCDF_INC `nc-config --fflags`
71
setenv NETCDF_INC `nc-config --fflags`
72
 
72
 
73
echo $NETCDF_LIB
73
echo $NETCDF_LIB
74
echo $NETCDF_INC
74
echo $NETCDF_INC
75
 
75
 
76
# Set list of core programs
76
# Set list of core programs
77
set core  = "create_startf caltra trace select density"
77
set core  = "startf caltra trace select density"
78
 
78
 
79
# Set list of goodies
79
# Set list of goodies
80
set tools = "changecst changet extract getmima gettidiff getvars list2lsl lsl2list mergetra newtime reformat timeres trainfo difference datelist geo2rot rot2geo" 
80
set tools = "changecst changet extract getmima gettidiff getvars list2lsl lsl2list mergetra newtime reformat timeres trainfo difference datelist geo2rot rot2geo" 
81
 
81
 
82
# Set list of libraries
82
# Set list of libraries
83
set libs  = "iotra ioinp inter times libcdfio libcdfplus rotate"
83
set libs  = "iotra ioinp inter times libcdfio libcdfplus rotate"
84
 
84
 
85
# Core programs
85
# Core programs
86
foreach prog ( $core )
86
foreach prog ( $core )
87
   if ( "${prog}" == "${mode}" ) then
87
   if ( "${prog}" == "${mode}" ) then
88
      set core  = ${prog}
88
      set core  = ${prog}
89
      set mode  = "core"
89
      set mode  = "core"
90
   endif
90
   endif
91
end
91
end
92
 
92
 
93
# Goodies
93
# Goodies
94
foreach tool ( $tools )
94
foreach tool ( $tools )
95
   if ( "${tool}" == "${mode}" ) then
95
   if ( "${tool}" == "${mode}" ) then
96
      set tools = ${tool}
96
      set tools = ${tool}
97
      set mode  = "goodies"
97
      set mode  = "goodies"
98
   endif
98
   endif
99
end
99
end
100
 
100
 
101
# Libraries
101
# Libraries
102
foreach lib ( $libs )
102
foreach lib ( $libs )
103
   if ( "${lib}" == "${mode}" ) then
103
   if ( "${lib}" == "${mode}" ) then
104
      set libs  = ${lib}
104
      set libs  = ${lib}
105
      set mode  = "lib"
105
      set mode  = "lib"
106
   endif
106
   endif
107
end
107
end
108
 
108
 
109
# Check that the mode is ok 
109
# Check that the mode is ok 
110
if ( "${mode}" == "all"     ) goto modeok
110
if ( "${mode}" == "all"     ) goto modeok
111
if ( "${mode}" == "lib"     ) goto modeok
111
if ( "${mode}" == "lib"     ) goto modeok
112
if ( "${mode}" == "core"    ) goto modeok
112
if ( "${mode}" == "core"    ) goto modeok
113
if ( "${mode}" == "goodies" ) goto modeok
113
if ( "${mode}" == "goodies" ) goto modeok
114
if ( "${mode}" == "links"   ) goto modeok
114
if ( "${mode}" == "links"   ) goto modeok
115
if ( "${mode}" == "clean"   ) goto modeok
115
if ( "${mode}" == "clean"   ) goto modeok
116
if ( "${mode}" == "docu"    ) goto modeok
116
if ( "${mode}" == "docu"    ) goto modeok
117
echo "Unsupported mode ${mode} ... Stop"
117
echo "Unsupported mode ${mode} ... Stop"
118
exit 1
118
exit 1
119
 
119
 
120
modeok:
120
modeok:
121
 
121
 
122
# -----------------------------------------------------------------------------
122
# -----------------------------------------------------------------------------
123
# Make clean 
123
# Make clean 
124
# -----------------------------------------------------------------------------
124
# -----------------------------------------------------------------------------
125
 
125
 
126
if ( "${mode}" == "clean" ) then
126
if ( "${mode}" == "clean" ) then
127
 
127
 
128
cd ${LAGRANTO}/
128
cd ${LAGRANTO}/
129
 
129
 
130
foreach prog ( $core )
130
foreach prog ( $core )
131
   \rm -f ${prog}/${prog} ${prog}/${prog}.o
131
   \rm -f ${prog}/${prog} ${prog}/${prog}.o
132
end
132
end
133
\rm -f trace/calvar.o select/special.o
133
\rm -f trace/calvar.o select/special.o
134
 
134
 
135
foreach tool ( $tools )
135
foreach tool ( $tools )
136
  \rm -f goodies/${tool} goodies/${tool}.o 
136
  \rm -f goodies/${tool} goodies/${tool}.o 
137
end
137
end
138
\rm -f goodies/*.mod goodies/*.o
138
\rm -f goodies/*.mod goodies/*.o
139
 
139
 
140
\rm lib/*.a lib/*.o
140
\rm lib/*.a lib/*.o
141
 
141
 
142
foreach prog ( $core )
142
foreach prog ( $core )
143
   \rm -f bin/${prog} bin/${prog}.sh  bin/${prog}.um
143
   \rm -f bin/${prog} bin/${prog}.sh  bin/${prog}.um
144
end
144
end
145
\rm -f bin/seltra bin/seltra.sh bin/seltra.um
145
\rm -f bin/seltra bin/seltra.sh bin/seltra.um
146
foreach tool ( $tools )
146
foreach tool ( $tools )
147
  \rm -f bin/${tool} bin/${tool}.sh bin/${tool}.um
147
  \rm -f bin/${tool} bin/${tool}.sh bin/${tool}.um
148
end
148
end
149
\rm -f bin/lagrantohelp.sh bin/lagrantohelp.um
149
\rm -f bin/lagrantohelp.sh bin/lagrantohelp.um
150
\rm -f bin/startf bin/startf.sh bin/startf.um
150
\rm -f bin/startf bin/startf.sh bin/startf.um
151
\rm -f bin/lagranto.sh bin/lagranto.um
151
\rm -f bin/lagranto.sh bin/lagranto.um
152
 
152
 
153
\rm ${LAGRANTO}/startf
153
\rm ${LAGRANTO}/startf
154
 
154
 
155
exit 0
155
exit 0
156
 
156
 
157
endif
157
endif
158
 
158
 
159
# -----------------------------------------------------------------------------
159
# -----------------------------------------------------------------------------
160
# Install reference 
160
# Install reference 
161
# -----------------------------------------------------------------------------
161
# -----------------------------------------------------------------------------
162
 
162
 
163
if ( ("${mode}" == "docu") | ("${mode}" == "all" ) ) then
163
if ( ("${mode}" == "docu") | ("${mode}" == "all" ) ) then
164
    
164
    
165
echo "-----------------------------------------------------------------"
165
echo "-----------------------------------------------------------------"
166
echo "Installing documentation"
166
echo "Installing documentation"
167
echo "-----------------------------------------------------------------"
167
echo "-----------------------------------------------------------------"
168
echo
168
echo
169
 
169
 
170
cd ${LAGRANTO}/docu/reference/
170
cd ${LAGRANTO}/docu/reference/
171
 
171
 
172
\rm -f reference.ps
172
\rm -f reference.ps
173
\rm -f reference2.ps
173
\rm -f reference2.ps
174
groff -man ../man/*.0 > reference2.ps
174
groff -man ../man/*.0 > reference2.ps
175
ps2pdf reference2.ps
175
ps2pdf reference2.ps
176
 
176
 
177
latex title
177
latex title
178
dvips title
178
dvips title
179
ps2pdf title.ps
179
ps2pdf title.ps
180
 
180
 
181
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=reference.pdf title.pdf reference2.pdf
181
gs -dBATCH -dNOPAUSE -q -sDEVICE=pdfwrite -sOutputFile=reference.pdf title.pdf reference2.pdf
182
 
182
 
183
\rm -f *.aux *.log *.dvi
183
\rm -f *.aux *.log *.dvi
184
\rm -f title.ps  reference2.ps
184
\rm -f title.ps  reference2.ps
185
\rm -f title.pdf reference2.pdf
185
\rm -f title.pdf reference2.pdf
186
 
186
 
187
endif
187
endif
188
 
188
 
189
if ( "${mode}" == "docu" ) exit 0
189
if ( "${mode}" == "docu" ) exit 0
190
 
190
 
191
# -----------------------------------------------------------------------------
191
# -----------------------------------------------------------------------------
192
# Install libraries 
192
# Install libraries 
193
# -----------------------------------------------------------------------------
193
# -----------------------------------------------------------------------------
194
 
194
 
195
if ( ("${mode}" == "lib") | ("${mode}" == "all" ) ) then
195
if ( ("${mode}" == "lib") | ("${mode}" == "all" ) ) then
196
 
196
 
197
echo "-----------------------------------------------------------------"
197
echo "-----------------------------------------------------------------"
198
echo "Installing libraries"
198
echo "Installing libraries"
199
echo "-----------------------------------------------------------------"
199
echo "-----------------------------------------------------------------"
200
echo
200
echo
201
 
201
 
202
# Change to library directory
202
# Change to library directory
203
cd ${LAGRANTO}/lib
203
cd ${LAGRANTO}/lib
204
 
204
 
205
# Loop over all libraries - compile and make library
205
# Loop over all libraries - compile and make library
206
foreach lib ( $libs )
206
foreach lib ( $libs )
207
 
207
 
208
\rm -f ${lib}.a
208
\rm -f ${lib}.a
209
\rm -f ${lib}.o
209
\rm -f ${lib}.o
210
echo ${FORTRAN} -c -O ${lib}.f
210
echo ${FORTRAN} -c -O ${lib}.f
211
${FORTRAN} -c -O ${NETCDF_INC} ${lib}.f
211
${FORTRAN} -c -O ${NETCDF_INC} ${lib}.f
212
ar r ${lib}.a ${lib}.o
212
ar r ${lib}.a ${lib}.o
213
\rm -f ${lib}.l ${lib}.o
213
\rm -f ${lib}.l ${lib}.o
214
ranlib ${lib}.a
214
ranlib ${lib}.a
215
if ( ! -f ${lib}.a ) then
215
if ( ! -f ${lib}.a ) then
216
  echo "Problem in compiling ${lib} ... Stop"
216
  echo "Problem in compiling ${lib} ... Stop"
217
  exit 1
217
  exit 1
218
endif
218
endif
219
 
219
 
220
end
220
end
221
 
221
 
222
endif
222
endif
223
 
223
 
224
if ( "${mode}" == "lib" ) exit 0
224
if ( "${mode}" == "lib" ) exit 0
225
 
225
 
226
# -----------------------------------------------------------------------------
226
# -----------------------------------------------------------------------------
227
# Check that libraries are ok
227
# Check that libraries are ok
228
# -----------------------------------------------------------------------------
228
# -----------------------------------------------------------------------------
229
 
229
 
230
echo
230
echo
231
echo "-----------------------------------------------------------------"
231
echo "-----------------------------------------------------------------"
232
echo "Check that all libraries are available"
232
echo "Check that all libraries are available"
233
echo "-----------------------------------------------------------------"
233
echo "-----------------------------------------------------------------"
234
echo
234
echo
235
 
235
 
236
# Change to library directory
236
# Change to library directory
237
cd ${LAGRANTO}/lib
237
cd ${LAGRANTO}/lib
238
 
238
 
239
# Check whether all libraries are available
239
# Check whether all libraries are available
240
foreach lib ( $libs )
240
foreach lib ( $libs )
241
 
241
 
242
if ( ! -f ${lib}.a ) then
242
if ( ! -f ${lib}.a ) then
243
  echo "Library ${lib} missing... Stop"
243
  echo "Library ${lib} missing... Stop"
244
  exit 1
244
  exit 1
245
else
245
else
246
  ls -l ${lib}.a    
246
  ls -l ${lib}.a    
247
endif
247
endif
248
 
248
 
249
end
249
end
250
 
250
 
251
# Exit if only libraries shoudl be installed
251
# Exit if only libraries shoudl be installed
252
if ( "${mode}" == "lib" ) exit 0
252
if ( "${mode}" == "lib" ) exit 0
253
 
253
 
254
# -----------------------------------------------------------------------------
254
# -----------------------------------------------------------------------------
255
# Compile Lagrango core programs
255
# Compile Lagrango core programs
256
# -----------------------------------------------------------------------------
256
# -----------------------------------------------------------------------------
257
 
257
 
258
if ( ("${mode}" == "all" ) | ("${mode}" == "core" ) ) then
258
if ( ("${mode}" == "all" ) | ("${mode}" == "core" ) ) then
259
 
259
 
260
echo
260
echo
261
echo "-----------------------------------------------------------------"
261
echo "-----------------------------------------------------------------"
262
echo "Installing Lagranto core programs"
262
echo "Installing Lagranto core programs"
263
echo "-----------------------------------------------------------------"
263
echo "-----------------------------------------------------------------"
264
 
264
 
265
foreach prog ( $core )
265
foreach prog ( $core )
266
 
266
 
267
echo
267
echo
268
echo "----- $prog"
268
echo "----- $prog"
269
echo
269
echo
270
cd ${LAGRANTO}/${prog}
270
cd ${LAGRANTO}/${prog}
271
\rm -f ${prog}.o 
271
\rm -f ${prog}.o 
272
\rm -f ${prog}
272
\rm -f ${prog}
273
if ( "${prog}" == "trace"  ) \rm calvar.o
273
if ( "${prog}" == "trace"  ) \rm calvar.o
274
if ( "${prog}" == "select" ) \rm special.o
274
if ( "${prog}" == "select" ) \rm special.o
275
\rm -f ${prog}
275
\rm -f ${prog}
276
make -f ${prog}.make
276
make -f ${prog}.make
277
if ( ! -f ${prog} ) then
277
if ( ! -f ${prog} ) then
278
  echo "Problem in compiling ${prog} ... Stop"
278
  echo "Problem in compiling ${prog} ... Stop"
279
  exit 1
279
  exit 1
280
endif
280
endif
281
 
281
 
282
end
282
end
283
 
283
 
284
endif
284
endif
285
 
285
 
286
if ( "${mode}" == "core" ) exit 0
286
if ( "${mode}" == "core" ) exit 0
287
 
287
 
288
# -----------------------------------------------------------------------------
288
# -----------------------------------------------------------------------------
289
# Check that all Lagranto core programs are available
289
# Check that all Lagranto core programs are available
290
# -----------------------------------------------------------------------------
290
# -----------------------------------------------------------------------------
291
 
291
 
292
echo
292
echo
293
echo "-----------------------------------------------------------------"
293
echo "-----------------------------------------------------------------"
294
echo "Check that all Lagranto core programs are available"
294
echo "Check that all Lagranto core programs are available"
295
echo "-----------------------------------------------------------------"
295
echo "-----------------------------------------------------------------"
296
echo
296
echo
297
 
297
 
298
foreach prog ( $core )
298
foreach prog ( $core )
299
 
299
 
300
  cd ${LAGRANTO}/${prog}
300
  cd ${LAGRANTO}/${prog}
301
  if ( ! -f ${prog} ) then
301
  if ( ! -f ${prog} ) then
302
    echo "${prog} is missing... Stop"
302
    echo "${prog} is missing... Stop"
303
    exit 1
303
    exit 1
304
  else
304
  else
305
    ls -l ${prog}    
305
    ls -l ${prog}    
306
  endif
306
  endif
307
 
307
 
308
end
308
end
309
 
309
 
310
# Exit if only core programs shoudl be installed
310
# Exit if only core programs shoudl be installed
311
if ( "${mode}" == "core" ) exit 0
311
if ( "${mode}" == "core" ) exit 0
312
 
312
 
313
# -----------------------------------------------------------------------------
313
# -----------------------------------------------------------------------------
314
# Compile Lagrango goodies
314
# Compile Lagrango goodies
315
# -----------------------------------------------------------------------------
315
# -----------------------------------------------------------------------------
316
 
316
 
317
if ( ("${mode}" == "all" ) | ("${mode}" == "goodies" ) ) then
317
if ( ("${mode}" == "all" ) | ("${mode}" == "goodies" ) ) then
318
 
318
 
319
echo
319
echo
320
echo "-----------------------------------------------------------------"
320
echo "-----------------------------------------------------------------"
321
echo "Installing Lagranto goodies"
321
echo "Installing Lagranto goodies"
322
echo "-----------------------------------------------------------------"
322
echo "-----------------------------------------------------------------"
323
 
323
 
324
cd ${LAGRANTO}/goodies
324
cd ${LAGRANTO}/goodies
325
 
325
 
326
foreach tool ( $tools )
326
foreach tool ( $tools )
327
 
327
 
328
echo
328
echo
329
echo "----- ${tool}"
329
echo "----- ${tool}"
330
echo
330
echo
331
\rm -f ${tool}.o
331
\rm -f ${tool}.o
332
\rm -f ${tool}
332
\rm -f ${tool}
333
make -f ${tool}.make
333
make -f ${tool}.make
334
if ( ! -f ${tool} ) then
334
if ( ! -f ${tool} ) then
335
  echo "Problem in compiling ${tool} ... Stop"
335
  echo "Problem in compiling ${tool} ... Stop"
336
  exit 1
336
  exit 1
337
endif
337
endif
338
 
338
 
339
end
339
end
340
 
340
 
341
endif
341
endif
342
 
342
 
343
if ( "${mode}" == "goodies" ) exit 0
343
if ( "${mode}" == "goodies" ) exit 0
344
 
344
 
345
# -----------------------------------------------------------------------------
345
# -----------------------------------------------------------------------------
346
# Check that all Lagranto goodies are available
346
# Check that all Lagranto goodies are available
347
# -----------------------------------------------------------------------------
347
# -----------------------------------------------------------------------------
348
 
348
 
349
echo
349
echo
350
echo "-----------------------------------------------------------------"
350
echo "-----------------------------------------------------------------"
351
echo "Check that all Lagranto goodies are available"
351
echo "Check that all Lagranto goodies are available"
352
echo "-----------------------------------------------------------------"
352
echo "-----------------------------------------------------------------"
353
echo
353
echo
354
 
354
 
355
cd ${LAGRANTO}/goodies
355
cd ${LAGRANTO}/goodies
356
 
356
 
357
foreach tool ( $tools )
357
foreach tool ( $tools )
358
 
358
 
359
if ( ! -f ${tool} ) then
359
if ( ! -f ${tool} ) then
360
  echo "${tool} is missing... Stop"
360
  echo "${tool} is missing... Stop"
361
  exit 1
361
  exit 1
362
else
362
else
363
  ls -l ${tool} 
363
  ls -l ${tool} 
364
endif
364
endif
365
 
365
 
366
end
366
end
367
 
367
 
368
endif
368
endif
369
 
369
 
370
# Exit if only goodies should be installed
370
# Exit if only goodies should be installed
371
if ( "${mode}" == "goodies" ) exit 0
371
if ( "${mode}" == "goodies" ) exit 0
372
 
372
 
373
# -----------------------------------------------------------------------------
373
# -----------------------------------------------------------------------------
374
# Create links to programs
374
# Create links to programs
375
# -----------------------------------------------------------------------------
375
# -----------------------------------------------------------------------------
376
 
376
 
377
if ( ("${mode}" == "all" ) | ("${mode}" == "links" )  ) then
377
if ( ("${mode}" == "all" ) | ("${mode}" == "links" )  ) then
378
 
378
 
379
echo
379
echo
380
echo "-----------------------------------------------------------------"
380
echo "-----------------------------------------------------------------"
381
echo "Create links in ${LAGRANTO}/bin/"
381
echo "Create links in ${LAGRANTO}/bin/"
382
echo "-----------------------------------------------------------------"
382
echo "-----------------------------------------------------------------"
383
echo
383
echo
384
 
384
 
385
cd ${LAGRANTO}/bin
385
cd ${LAGRANTO}/bin
386
 
386
 
387
ln -svf ${LAGRANTO}/bin/lagranto            lagranto.sh
387
ln -svf ${LAGRANTO}/bin/lagranto            lagranto.sh
388
ln -svf ${LAGRANTO}/bin/lagranto            lagranto.um  
388
ln -svf ${LAGRANTO}/bin/lagranto            lagranto.um  
389
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.sh
389
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.sh
390
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.um
390
ln -svf ${LAGRANTO}/bin/lagrantohelp        lagrantohelp.um
391
 
391
 
392
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.sh
392
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.sh
393
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.sh
393
ln -svf ${LAGRANTO}/startf/startf.sh        startf.sh
394
ln -svf ${LAGRANTO}/select/select.sh        select.sh
394
ln -svf ${LAGRANTO}/select/select.sh        select.sh
395
ln -svf ${LAGRANTO}/trace/trace.sh          trace.sh
395
ln -svf ${LAGRANTO}/trace/trace.sh          trace.sh
396
ln -svf ${LAGRANTO}/density/density.sh      density.sh
396
ln -svf ${LAGRANTO}/density/density.sh      density.sh
397
 
397
 
398
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra
398
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra
399
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf
399
ln -svf ${LAGRANTO}/startf/startf.sh        startf
400
ln -svf ${LAGRANTO}/select/select.sh        select
400
ln -svf ${LAGRANTO}/select/select.sh        select
401
ln -svf ${LAGRANTO}/trace/trace.sh          trace
401
ln -svf ${LAGRANTO}/trace/trace.sh          trace
402
ln -svf ${LAGRANTO}/density/density.sh      density
402
ln -svf ${LAGRANTO}/density/density.sh      density
403
 
403
 
404
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.um
404
ln -svf ${LAGRANTO}/caltra/caltra.sh        caltra.um
405
ln -svf ${LAGRANTO}/startf/create_startf.sh create_startf.um
405
ln -svf ${LAGRANTO}/startf/startf.sh        startf.um
406
ln -svf ${LAGRANTO}/select/select.sh        select.um
406
ln -svf ${LAGRANTO}/select/select.sh        select.um
407
ln -svf ${LAGRANTO}/trace/trace.sh          trace.um
407
ln -svf ${LAGRANTO}/trace/trace.sh          trace.um
408
ln -svf ${LAGRANTO}/density/density.sh      density.um
408
ln -svf ${LAGRANTO}/density/density.sh      density.um
409
 
409
 
410
 
-
 
411
ln -svf ${LAGRANTO}/startf/create_startf.sh startf.sh
-
 
412
ln -svf ${LAGRANTO}/startf/create_startf.sh startf
-
 
413
n -svf ${LAGRANTO}/startf/create_startf.sh startf.um
-
 
414
 
-
 
415
foreach tool ( $tools )
410
foreach tool ( $tools )
416
 
411
 
417
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.sh 
412
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.sh 
418
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool} 
413
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool} 
419
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.um
414
ln -svf ${LAGRANTO}/goodies/${tool}.sh     ${tool}.um
420
 
415
 
421
end
416
end
422
 
417
 
423
endif
418
endif
424
 
419
 
425
# -----------------------------------------------------------------------------
420
# -----------------------------------------------------------------------------
426
# Final tasks
421
# Final tasks
427
# -----------------------------------------------------------------------------
422
# -----------------------------------------------------------------------------
428
 
423
 
429
echo
424
echo
430
echo "-----------------------------------------------------------------"
425
echo "-----------------------------------------------------------------"
431
echo "Installation complete"
426
echo "Installation complete"
432
echo "-----------------------------------------------------------------"
427
echo "-----------------------------------------------------------------"
433
echo
428
echo
434
echo "Please set the environmental variable LAGRANTO"
429
echo "Please set the environmental variable LAGRANTO"
435
echo
430
echo
436
echo "    setenv LAGRANTO ${LAGRANTO}"
431
echo "    setenv LAGRANTO ${LAGRANTO}"
437
echo
432
echo
438
 
433
 
439
 
434
 
440
 
435
 
441
 
436
 
442
 
437