-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile
executable file
·64 lines (57 loc) · 1.33 KB
/
compile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/bin/csh -f
if ( ! -e configure.rip ) then
echo "Do 'configure' first"
exit ( 1 )
endif
if ( ( ! $?NETCDF ) && ( -d netcdf_links ) ) then
setenv NETCDF `pwd`/netcdf_links
setenv temp_netcdf 1
else
setenv temp_netcdf 0
endif
echo " "
echo "**** Compiling rip ****"
echo " "
if ( ${#argv} == 0 ) then
( cd src ; make -i -r all )
if ( -e src/rip ) then
ln -sf src/rip .
endif
if ( -e src/ripcomp ) then
ln -sf src/ripcomp .
endif
if ( -e src/ripcut ) then
ln -sf src/ripcut .
endif
if ( -e src/ripdp_mm5 ) then
ln -sf src/ripdp_mm5 .
endif
if ( -e src/ripdp_wrfarw ) then
ln -sf src/ripdp_wrfarw .
endif
if ( -e src/ripdp_mpas ) then
ln -sf src/ripdp_mpas .
endif
if ( -e src/ripdp_wrfnmm ) then
ln -sf src/ripdp_wrfnmm .
endif
if ( -e src/ripinterp ) then
ln -sf src/ripinterp .
endif
if ( -e src/ripshow ) then
ln -sf src/ripshow .
endif
if ( -e src/showtraj ) then
ln -sf src/showtraj .
endif
if ( -e src/tabdiag ) then
ln -sf src/tabdiag .
endif
if ( -e src/upscale ) then
ln -sf src/upscale .
endif
endif
if ( $temp_netcdf == 1 ) then
unsetenv NETCDF
endif
exit(0)