--- MITgcm/tools/genmake2 2007/02/18 21:39:59 1.161 +++ MITgcm/tools/genmake2 2007/05/25 14:56:36 1.163 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.161 2007/02/18 21:39:59 jmc Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.163 2007/05/25 14:56:36 mlosch Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -756,7 +756,9 @@ print *," HELLO WORLD", wtime end EOF - $FC $FFLAGS -o genmake_tc genmake_tc_2.$FS genmake_tc_1.o >> genmake_warnings 2>&1 + COMM="$FC $FFLAGS -o genmake_tc genmake_tc_2.$FS genmake_tc_1.o" + echo $COMM >> genmake_warnings + $COMM >> genmake_warnings 2>&1 RET_F=$? test -x ./genmake_tc && ./genmake_tc >> genmake_warnings 2>&1 RETVAL=$? @@ -2029,7 +2031,7 @@ i=0 # rtot=${#PNAME[@]} rtot=$nname - while test $i -lt $rtot ; do + while test $i -le $rtot ; do # Is $pname in the current $PACKAGES list? # pname=${PNAME[$i]} @@ -2063,6 +2065,7 @@ # Do we need to add $dname according to the dependency rules? if test "x$pin" = xt -a "x$plus" = "x+" -a "x$din" = xf ; then + #echo " " $pname ": need to add :" $dname in_dis="f" for dis in $DISABLE ; do if test "x$dis" = "x$dname" ; then