27 |
echo " (DEF=\"make output.txt\")" |
echo " (DEF=\"make output.txt\")" |
28 |
echo " (-m|-make) STRING command to use for \"make\"" |
echo " (-m|-make) STRING command to use for \"make\"" |
29 |
echo " (DEF=\"make\")" |
echo " (DEF=\"make\")" |
30 |
|
echo " (-j) JOBS use \"make -j JOBS\" for parallel builds" |
31 |
echo " (-clean) *ONLY* run \"make CLEAN\"" |
echo " (-clean) *ONLY* run \"make CLEAN\"" |
32 |
echo " (-quick|-q) same as \"-nogenmake -noclean -nodepend\"" |
echo " (-quick|-q) same as \"-nogenmake -noclean -nodepend\"" |
33 |
echo " (-nogenmake|-ng) skip the genmake stage" |
echo " (-nogenmake|-ng) skip the genmake stage" |
236 |
printf 'genmake ... ' 1>&2 |
printf 'genmake ... ' 1>&2 |
237 |
$command > make.log 2>&1 |
$command > make.log 2>&1 |
238 |
RETVAL=$? |
RETVAL=$? |
239 |
cp Makefile $CDIR |
# Reduce the size of the testing emails! |
240 |
|
# cp Makefile $CDIR |
241 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
242 |
tail make.log |
tail make.log |
243 |
echo "genmakemodel: genmake failed" 1>&2 |
echo "genmakemodel: genmake failed" 1>&2 |
309 |
if test -r Makefile ; then |
if test -r Makefile ; then |
310 |
printf 'make ... ' 1>&2 |
printf 'make ... ' 1>&2 |
311 |
if test "x$ADM" = x ; then |
if test "x$ADM" = x ; then |
312 |
$MAKE >> make.log 2>&1 |
if test "x$JOBS" = x ; then |
313 |
|
$MAKE >> make.log 2>&1 |
314 |
|
else |
315 |
|
$MAKE -j $JOBS >> make.log 2>&1 |
316 |
|
fi |
317 |
else |
else |
318 |
$MAKE adall >> make.log 2>&1 |
$MAKE adall >> make.log 2>&1 |
319 |
fi |
fi |
427 |
RETVAL=$? |
RETVAL=$? |
428 |
if test "x$RETVAL" = x0 ; then |
if test "x$RETVAL" = x0 ; then |
429 |
echo successful 1>&2 |
echo successful 1>&2 |
430 |
if test "x$ADM" = x ; then |
# === Reduce the size of the testing emails! |
431 |
cp output.txt $CDIR"/output.txt" |
# if test "x$ADM" = x ; then |
432 |
else |
# cp output.txt $CDIR"/output.txt" |
433 |
cp output.txt_adm $CDIR"/output.txt_adm" |
# else |
434 |
fi |
# cp output.txt_adm $CDIR"/output.txt_adm" |
435 |
|
# fi |
436 |
return 0 |
return 0 |
437 |
else |
else |
438 |
tail run.log |
tail run.log |
574 |
MPACK="$MPACKDIR/mpack" |
MPACK="$MPACKDIR/mpack" |
575 |
COMMAND= |
COMMAND= |
576 |
MAKE=make |
MAKE=make |
577 |
|
JOBS= |
578 |
MPI=f |
MPI=f |
579 |
DELDIR= |
DELDIR= |
580 |
|
|
629 |
-make=* | --make=*) |
-make=* | --make=*) |
630 |
MAKE=$ac_optarg ;; |
MAKE=$ac_optarg ;; |
631 |
|
|
632 |
|
-j) ac_prev=JOBS ;; |
633 |
|
-j=*) JOBS=$ac_optarg ;; |
634 |
|
|
635 |
-clean | --clean) |
-clean | --clean) |
636 |
CLEANUP=t ;; |
CLEANUP=t ;; |
637 |
|
|
940 |
if test "x$HAVE_MPACK" = xt ; then |
if test "x$HAVE_MPACK" = xt ; then |
941 |
tar -cf $DRESULTS".tar" $DRESULTS > /dev/null 2>&1 \ |
tar -cf $DRESULTS".tar" $DRESULTS > /dev/null 2>&1 \ |
942 |
&& gzip $DRESULTS".tar" \ |
&& gzip $DRESULTS".tar" \ |
943 |
&& $MPACK -s MITgcm-test -m 1500000 $DRESULTS".tar.gz" $ADDRESSES |
&& $MPACK -s MITgcm-test -m 3555000 $DRESULTS".tar.gz" $ADDRESSES |
944 |
RETVAL=$? |
RETVAL=$? |
945 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
946 |
echo |
echo |