19 |
echo " (-of=|-optfile=)STRING list of optfiles to use" |
echo " (-of=|-optfile=)STRING list of optfiles to use" |
20 |
echo " (-a|-addr) STRING list of email recipients" |
echo " (-a|-addr) STRING list of email recipients" |
21 |
echo " (DEF=\"\" no email is sent)" |
echo " (DEF=\"\" no email is sent)" |
22 |
|
echo " (-mpd|-mpackdir) DIR location of the mpack utility" |
23 |
|
echo " (DEF=\"../tools/mpack-1.6\")" |
24 |
echo " (-t|-tdir) STRING list of group and/or exp. dirs to test" |
echo " (-t|-tdir) STRING list of group and/or exp. dirs to test" |
25 |
echo " (recognized groups: basic, tutorials)" |
echo " (recognized groups: basic, tutorials)" |
26 |
echo " (DEF=\"\" which test all)" |
echo " (DEF=\"\" which test all)" |
67 |
build_mpack() |
build_mpack() |
68 |
{ |
{ |
69 |
printf "building the mpack utility... " |
printf "building the mpack utility... " |
70 |
if test ! -x "$MPACKDIR/mpack" ; then |
MPACK="$MPACKDIR/mpack" |
71 |
|
if test ! -x $MPACK ; then |
72 |
if test ! -d $MPACKDIR ; then |
if test ! -d $MPACKDIR ; then |
73 |
echo |
echo |
74 |
echo "Error: can't find \"$MPACKDIR\"" |
echo "Error: can't find \"$MPACKDIR\"" |
77 |
echo |
echo |
78 |
HAVE_MPACK=f |
HAVE_MPACK=f |
79 |
fi |
fi |
|
printf "building mpack... " |
|
80 |
if test "x$CC" = x ; then |
if test "x$CC" = x ; then |
81 |
export CC=cc |
export CC=cc |
82 |
fi |
fi |
83 |
|
printf "building mpack (using CC=$CC)... " |
84 |
( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1 |
( cd $MPACKDIR && ./configure && $MAKE ) > tr_build_mpack.out 2>&1 |
85 |
RETVAL=$? |
RETVAL=$? |
86 |
if test "x$RETVAL" != x0 ; then |
if test "x$RETVAL" != x0 ; then |
91 |
else |
else |
92 |
rm -f tr_build_mpack.out |
rm -f tr_build_mpack.out |
93 |
HAVE_MPACK=t |
HAVE_MPACK=t |
94 |
|
echo "done" |
95 |
fi |
fi |
96 |
else |
else |
97 |
HAVE_MPACK=t |
HAVE_MPACK=t |
98 |
|
echo "already exist" |
99 |
fi |
fi |
|
echo "OK" |
|
100 |
} |
} |
101 |
|
|
102 |
testoutput_var() |
testoutput_var() |
629 |
{ |
{ |
630 |
# create codelet for comparing model output |
# create codelet for comparing model output |
631 |
|
|
632 |
printf "creating the comparison code... " |
printf "creating the comparison code (using CC=$CC)... " |
633 |
cat > tr_cmpnum.c <<EOF |
cat > tr_cmpnum.c <<EOF |
634 |
#include <stdio.h> |
#include <stdio.h> |
635 |
#include <math.h> |
#include <math.h> |
747 |
SKIPDIRS= |
SKIPDIRS= |
748 |
MPACKDIR="../tools/mpack-1.6" |
MPACKDIR="../tools/mpack-1.6" |
749 |
HAVE_MPACK= |
HAVE_MPACK= |
750 |
MPACK="$MPACKDIR/mpack" |
MPACK= |
751 |
COMMAND= |
COMMAND= |
752 |
if test "x$MAKE" = x ; then |
if test "x$MAKE" = x ; then |
753 |
MAKE=make |
MAKE=make |
796 |
ac_prev=ADDRESSES ;; |
ac_prev=ADDRESSES ;; |
797 |
-addr=* | --addr=*) |
-addr=* | --addr=*) |
798 |
ADDRESSES=$ac_optarg ;; |
ADDRESSES=$ac_optarg ;; |
799 |
|
-mpackdir | --mpackdir | -mpd | --mpd) |
800 |
|
ac_prev=MPACKDIR ;; |
801 |
|
-mpackdir=* | --mpackdir=* | -mpd=* | --mpd=*) |
802 |
|
MPACKDIR=$ac_optarg ;; |
803 |
|
|
804 |
-tdir | --tdir | -t | --t) |
-tdir | --tdir | -t | --t) |
805 |
ac_prev=TESTDIRS ;; |
ac_prev=TESTDIRS ;; |
986 |
# create the FORTRAN comparison code |
# create the FORTRAN comparison code |
987 |
createcodelet |
createcodelet |
988 |
|
|
989 |
# build the mpack utility |
# build the mpack utility (if ADDRESSES = NONE, do it to test the build) |
990 |
if test "x$ADDRESSES" = xNONE -o "x$ADDRESSES" = x ; then |
if test "x$ADDRESSES" = x ; then |
991 |
echo "skipping mpack build" |
echo "skipping mpack build" |
992 |
else |
else |
993 |
build_mpack |
build_mpack |