Last change
on this file since 333 was
11,
checked in by aslmd, 14 years ago
|
spiga@svn-planeto:ajoute le modele meso-echelle martien
|
-
Property svn:executable set to
*
|
File size:
1.6 KB
|
Line | |
---|
1 | #!/bin/csh -f |
---|
2 | |
---|
3 | set DEV_TOP = `pwd` |
---|
4 | |
---|
5 | set TOUCH = ORIG |
---|
6 | if ( ! -e configure.wps ) then |
---|
7 | touch configure.wps |
---|
8 | set TOUCH = TOUCH |
---|
9 | endif |
---|
10 | |
---|
11 | set nonomatch |
---|
12 | |
---|
13 | set DIRS = ( geogrid ungrib metgrid ungrib ungrib util util util util util ) |
---|
14 | set EXES = ( geogrid ungrib metgrid g1print g2print plotfmt plotgrids mod_levs rd_intermediate avg_tsfc ) |
---|
15 | |
---|
16 | set i = 1 |
---|
17 | foreach dir ( $DIRS ) |
---|
18 | if ( -d $dir ) then |
---|
19 | ( cd $dir ; make -i DEV_TOP="${DEV_TOP}" TARGET="$EXES[$i].exe" clean ) |
---|
20 | endif |
---|
21 | /bin/rm -f $EXES[$i].exe |
---|
22 | @ i ++ |
---|
23 | end |
---|
24 | |
---|
25 | # The nuclear option |
---|
26 | |
---|
27 | find . -name \*.exe -exec \rm {} \; |
---|
28 | find . -name \*.o -exec \rm {} \; |
---|
29 | find . -name \*.a -exec \rm {} \; |
---|
30 | |
---|
31 | #rm gmeta |
---|
32 | |
---|
33 | #if ( -e GRIBFILE.AAA ) then |
---|
34 | # /bin/rm -f GRIBFILE.[A-Z][A-Z][A-Z] |
---|
35 | #endif |
---|
36 | |
---|
37 | #/bin/rm -f FILE:[0-9][0-9][0-9][0-9]-[0-9][0-9]-[0-9][0-9]_[0-9][0-9] >& /dev/null |
---|
38 | |
---|
39 | #if ( -e Vtable ) then |
---|
40 | # /bin/rm -f Vtable |
---|
41 | #endif |
---|
42 | |
---|
43 | #foreach core ( em nmm ) |
---|
44 | # foreach io_form ( nc bin grib ) |
---|
45 | # /bin/rm -f geo_${core}.d[0-9][0-9].${io_form} >& /dev/null |
---|
46 | # /bin/rm -f met_${core}.d[0-9][0-9].*.${io_form} >& /dev/null |
---|
47 | # end |
---|
48 | #end |
---|
49 | |
---|
50 | #if ( -e geogrid.log ) then |
---|
51 | # /bin/rm -f geogrid.log |
---|
52 | #endif |
---|
53 | |
---|
54 | #if ( -e metgrid.log ) then |
---|
55 | # /bin/rm -f metgrid.log |
---|
56 | #endif |
---|
57 | |
---|
58 | if ( "$1" == '-a' ) then |
---|
59 | /bin/rm -rf ./netcdf_links |
---|
60 | foreach dir ( $DIRS ) |
---|
61 | if ( -d $dir ) then |
---|
62 | ( cd $dir ; make -i DEV_TOP="${DEV_TOP}" TARGET="${dir}.exe" superclean >& /dev/null ) |
---|
63 | endif |
---|
64 | if ( -l ${dir}.exe ) then |
---|
65 | /bin/rm -f ${dir}.exe |
---|
66 | endif |
---|
67 | end |
---|
68 | if ( -e configure.wps ) then |
---|
69 | /bin/cp configure.wps configure.wps.backup |
---|
70 | /bin/rm -f configure.wps |
---|
71 | endif |
---|
72 | endif |
---|
73 | |
---|
74 | if ( ( $TOUCH == TOUCH ) && ( -e configure.wps ) ) then |
---|
75 | /bin/rm -f configure.wps |
---|
76 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.