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