34 |
# EOF |
# EOF |
35 |
gcmDIR="MITgcm_$sfx" |
gcmDIR="MITgcm_$sfx" |
36 |
cd $TST_DIR |
cd $TST_DIR |
37 |
if test $checkOut = '1' ; then |
#- check for disk space: |
38 |
|
dsp=`df . | tail -1 | awk '{print $5}' | sed 's/%$//'` |
39 |
|
if [ $dsp -gt 99 ] ; then |
40 |
|
echo 'Not enough space on this disk => do not run testreport.' |
41 |
|
df . |
42 |
|
exit |
43 |
|
fi |
44 |
|
if [ $checkOut -eq 1 ] ; then |
45 |
|
if test -d $gcmDIR/CVS ; then |
46 |
|
echo "cvs update of dir $gcmDIR :" |
47 |
|
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) |
48 |
|
/bin/rm -rf $gcmDIR/verification/tr_aces-${sfx}_????????_? |
49 |
|
else |
50 |
|
echo "no dir: $gcmDIR/CVS => try a fresh check-out" |
51 |
|
checkOut=2 |
52 |
|
fi |
53 |
|
fi |
54 |
|
if [ $checkOut -eq 2 ] ; then |
55 |
if test -e $gcmDIR ; then |
if test -e $gcmDIR ; then |
56 |
rm -rf $gcmDIR |
rm -rf $gcmDIR |
57 |
fi |
fi |