13 |
echo " (-optfile=|-of=)STRING list of genmake2 \"optfiles\"" |
echo " (-optfile=|-of=)STRING list of genmake2 \"optfiles\"" |
14 |
echo " (-a|-addr)STRING list of email recipients" |
echo " (-a|-addr)STRING list of email recipients" |
15 |
echo " (-t|-tdir)STRING list of \"test\" dirs" |
echo " (-t|-tdir)STRING list of \"test\" dirs" |
16 |
|
echo " (-b|-bash)STRING location of \"bash\" executable" |
17 |
echo |
echo |
18 |
exit 1 |
exit 1 |
19 |
} |
} |
161 |
genmakemodel() |
genmakemodel() |
162 |
{ |
{ |
163 |
# genmakemodel directory |
# genmakemodel directory |
164 |
GENMAKE2="../../../tools/genmake2" |
GENMAKE2="$BASH ../../../tools/genmake2" |
165 |
( |
( |
166 |
cd $1; |
cd $1; |
167 |
printf 'genmake ... ' 1>&2 |
printf 'genmake ... ' 1>&2 |
316 |
return 0 |
return 0 |
317 |
else |
else |
318 |
echo |
echo |
319 |
echo "createcodelet: failed to compile codelet" | tee |
echo "createcodelet: failed to compile codelet" |
320 |
exit 1 |
exit 1 |
321 |
fi |
fi |
322 |
} |
} |
389 |
ieee=1 |
ieee=1 |
390 |
expts='' |
expts='' |
391 |
|
|
392 |
|
BASH= |
393 |
OPTFILES= |
OPTFILES= |
394 |
ADDRESSES=edhill@mitgcm.org |
ADDRESSES=edhill@mitgcm.org |
395 |
TESTDIRS= |
TESTDIRS= |
430 |
-tdir=* | --tdir=*) |
-tdir=* | --tdir=*) |
431 |
TESTDIRS=$ac_optarg ;; |
TESTDIRS=$ac_optarg ;; |
432 |
|
|
433 |
|
-bash | --bash | -b | --b) |
434 |
|
ac_prev=BASH ;; |
435 |
|
-bash=* | --bash=*) |
436 |
|
BASH=$ac_optarg ;; |
437 |
|
|
438 |
-quick) quick=1 ;; |
-quick) quick=1 ;; |
439 |
-verbose) verbose=2 ;; |
-verbose) verbose=2 ;; |
440 |
-debug) debug=1 ;; |
-debug) debug=1 ;; |
512 |
|
|
513 |
# ...and each test directory... |
# ...and each test directory... |
514 |
for dir in $TESTDIRS ; do |
for dir in $TESTDIRS ; do |
515 |
|
|
516 |
|
# Verify that the testdir exists and contains previous |
517 |
|
# results in the correct location--or skip this directory! |
518 |
|
if test ! -r $dir"/results/output.txt" ; then |
519 |
|
echo | tee -a $SUMMARY |
520 |
|
echo "can't read \"$dir/results/output.txt\" -- skipping $dir" \ |
521 |
|
| tee -a $SUMMARY |
522 |
|
continue |
523 |
|
fi |
524 |
|
|
525 |
# Create an output dir for each OPTFILE/tdir combination |
# Create an output dir for each OPTFILE/tdir combination |
526 |
CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR |
CDIR=$DRESULTS"/"$DRESULTS"_"$NDIR |
546 |
rundir=input |
rundir=input |
547 |
fi |
fi |
548 |
|
|
|
# Verify that the testdir exists and contains previous |
|
|
# results in the correct location--or skip this directory! |
|
|
if test ! -r $dir"/results/output.txt" ; then |
|
|
echo | tee $SUMMARY |
|
|
echo "can't read \"$dir/results/output.txt\" -- skipping $dir" \ |
|
|
| tee $SUMMARY |
|
|
continue |
|
|
fi |
|
|
|
|
549 |
genmakemodel $dir/$builddir && genmake=Y \ |
genmakemodel $dir/$builddir && genmake=Y \ |
550 |
&& makeclean $dir/$builddir \ |
&& makeclean $dir/$builddir \ |
551 |
&& makedependmodel $dir/$builddir && makedepend=Y \ |
&& makedependmodel $dir/$builddir && makedepend=Y \ |