source: trunk/mesoscale/LMD_MM_MARS/SRC/ARWpost/clean @ 13

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
Line 
1#!/bin/csh -f
2
3set DEV_TOP = `pwd`
4
5set TOUCH = ORIG
6if ( ! -e configure.arwp ) then
7        touch configure.arwp
8        set TOUCH = TOUCH
9endif
10
11set nonomatch
12
13set DIRS = ( src )
14set EXES = ( ARWpost )
15
16set i = 1
17foreach 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 ++
23end
24
25#       The nuclear option
26
27find . -name \*.exe -exec \rm {} \; 
28find . -name \*.o -exec \rm {} \; 
29find . -name \*.a -exec \rm {} \; 
30
31
32if ( "$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
43endif
44
45if ( ( $TOUCH == TOUCH ) && ( -e configure.arwp ) ) then
46        /bin/rm -f configure.arwp
47endif
Note: See TracBrowser for help on using the repository browser.