Last change
on this file since 13 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:
905 bytes
|
Rev | Line | |
---|
[11] | 1 | #!/bin/csh -f |
---|
| 2 | |
---|
| 3 | set DEV_TOP = `pwd` |
---|
| 4 | |
---|
| 5 | set TOUCH = ORIG |
---|
| 6 | if ( ! -e configure.arwp ) then |
---|
| 7 | touch configure.arwp |
---|
| 8 | set TOUCH = TOUCH |
---|
| 9 | endif |
---|
| 10 | |
---|
| 11 | set nonomatch |
---|
| 12 | |
---|
| 13 | set DIRS = ( src ) |
---|
| 14 | set EXES = ( ARWpost ) |
---|
| 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 | |
---|
| 32 | if ( "$1" == '-a' ) then |
---|
| 33 | /bin/rm -rf ./netcdf_links |
---|
| 34 | foreach dir ( $DIRS ) |
---|
| 35 | if ( -d $dir ) then |
---|
| 36 | ( cd $dir ; make -i DEV_TOP="${DEV_TOP}" TARGET="${dir}.exe" clobber >& /dev/null ) |
---|
| 37 | endif |
---|
| 38 | end |
---|
| 39 | if ( -e configure.arwp ) then |
---|
| 40 | /bin/cp configure.arwp configure.arwp.backup |
---|
| 41 | /bin/rm -f configure.arwp |
---|
| 42 | endif |
---|
| 43 | endif |
---|
| 44 | |
---|
| 45 | if ( ( $TOUCH == TOUCH ) && ( -e configure.arwp ) ) then |
---|
| 46 | /bin/rm -f configure.arwp |
---|
| 47 | endif |
---|
Note: See
TracBrowser
for help on using the repository browser.