Subversion Repositories lagranto.wrf

Rev

Rev 15 | Only display areas with differences | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

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