58 |
fi |
fi |
59 |
if [ $checkOut -eq 1 ] ; then |
if [ $checkOut -eq 1 ] ; then |
60 |
if test -d $gcmDIR/CVS ; then |
if test -d $gcmDIR/CVS ; then |
61 |
/bin/rm -rf $gcmDIR/verification/??_${dNam}-${sfx}_????????_? |
#- remove previous output tar files and tar & remove previous output-dir |
62 |
|
/bin/rm -f $gcmDIR/verification/??_${dNam}-${sfx}_????????_?.tar.gz |
63 |
|
( cd $gcmDIR/verification |
64 |
|
listD=`ls -1 -d ??_${dNam}-${sfx}_????????_?` |
65 |
|
for dd in $listD |
66 |
|
do |
67 |
|
if test -d $dd ; then |
68 |
|
tar -cf ${dd}".tar" $dd > /dev/null 2>&1 && gzip ${dd}".tar" && /bin/rm -rf $dd |
69 |
|
RETVAL=$? |
70 |
|
if test "x$RETVAL" != x0 ; then |
71 |
|
echo "ERROR in tar+gzip prev outp-dir: $dd" |
72 |
|
echo " on '"`hostname`"' (return val=$RETVAL) but continue" |
73 |
|
fi |
74 |
|
fi |
75 |
|
done ) |
76 |
( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
( cd $gcmDIR/verification ; ../tools/do_tst_2+2 -clean ) |
77 |
echo "cvs update of dir $gcmDIR :" |
echo "cvs update of dir $gcmDIR :" |
78 |
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1 |
( cd $gcmDIR ; cvs -q -d :pserver:cvsanon@mitgcm.org:/u/gcmpack update -P -d ) 2>&1 |