33 |
#option="-nc" ; checkOut=0 |
#option="-nc" ; checkOut=0 |
34 |
#option="-q" ; checkOut=0 |
#option="-q" ; checkOut=0 |
35 |
|
|
36 |
|
TODAY=`date +%d` |
37 |
tdir=$TESTDIR |
tdir=$TESTDIR |
38 |
if test $checkOut = '0' ; then |
if test $checkOut = '0' ; then |
39 |
if test -e $tdir/MITgcm/CVS ; then |
if test -e $tdir/MITgcm/CVS ; then |
77 |
|
|
78 |
echo "================================================================" |
echo "================================================================" |
79 |
typ=`echo $tt | sed 's/+rs//'` |
typ=`echo $tt | sed 's/+rs//'` |
80 |
|
#- check day and time: |
81 |
|
curDay=`date +%d` ; curHour=`date +%H` |
82 |
|
if [ $curDay -ne $TODAY ] ; then |
83 |
|
date ; echo "day is over => skip test $typ" |
84 |
|
continue |
85 |
|
fi |
86 |
|
if [ $curHour -ge 18 ] ; then |
87 |
|
date ; echo "too late to run test $typ" |
88 |
|
continue |
89 |
|
fi |
90 |
#- clean-up old output files |
#- clean-up old output files |
91 |
rm -f $tdir/output_${typ}* |
rm -f $tdir/output_${typ}* |
92 |
if test $sepDir = 1 ; then |
if test $sepDir = 1 ; then |