Subversion Repositories lagranto.wrf

Rev

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

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