1 |
mlosch |
1.1 |
#$Header: $ |
2 |
|
|
#$Name: $ |
3 |
|
|
#!/bin/csh -x |
4 |
|
|
|
5 |
|
|
setenv CVS_RSH ssh |
6 |
|
|
source /applic/com/forte7.login # Sun Workshop (incl. Fortran) |
7 |
|
|
|
8 |
|
|
set tmpbase=/tphs1/user2/mlosch |
9 |
|
|
set tmpbase=/tmp/mlosch |
10 |
|
|
set tmpbase=/tphs1/kurz/mlosch |
11 |
|
|
#set tmpdir=tmp`date -u +'%Y-%b-%d-%Hh%Mm%Ss'` |
12 |
|
|
set tmpdir=tmp_f77 |
13 |
|
|
|
14 |
|
|
if ( ! -e ${tmpbase} ) then |
15 |
|
|
mkdir ${tmpbase} |
16 |
|
|
endif |
17 |
|
|
if ( -e ${tmpbase}/${tmpdir} ) then |
18 |
|
|
rm -rf ${tmpbase}/${tmpdir} |
19 |
|
|
endif |
20 |
|
|
mkdir ${tmpbase}/${tmpdir} |
21 |
|
|
cd ${tmpbase}/${tmpdir} |
22 |
|
|
cvs -d :pserver:cvsanon@mitgcm.org:/u/gcmpack co MITgcm >& cvs_co.log |
23 |
|
|
#cvs -d :ext:@mitgcm.org:/u/gcmpack co MITgcm >& $tmpbase/cvs_co.log |
24 |
|
|
if ( $status > 0 ) then |
25 |
|
|
cat ${tmpbase}/${tmpdir}/cvs_co.log |
26 |
|
|
else |
27 |
|
|
|
28 |
|
|
cd MITgcm/verification |
29 |
|
|
./testreport -a "edhill@mitgcm.org mlosch@awi-bremerhaven.de" -ieee \ |
30 |
|
|
-of=../tools/build_options/sunos_sun4u_f77 \ |
31 |
|
|
>& /dev/null |
32 |
|
|
./testreport -clean |
33 |
|
|
./testreport -a "edhill@mitgcm.org" -ieee \ |
34 |
|
|
-of=../tools/build_options/sunos_sun4u_g77 \ |
35 |
|
|
>& /dev/null |
36 |
|
|
if ( $status > 0 ) then |
37 |
|
|
echo "something wrong with testreport" |
38 |
|
|
echo "keeping the working directory" |
39 |
|
|
else |
40 |
|
|
# delete working directory |
41 |
|
|
cd $tmpbase |
42 |
|
|
rm -rf $tmpdir |
43 |
|
|
endif |
44 |
|
|
endif |
45 |
|
|
|