--- MITgcm/tools/genmake2 2003/10/04 14:21:58 1.11.2.12 +++ MITgcm/tools/genmake2 2003/10/08 05:58:50 1.11.2.13 @@ -1,6 +1,6 @@ #!/bin/bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.11.2.12 2003/10/04 14:21:58 edhill Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.11.2.13 2003/10/08 05:58:50 edhill Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -49,7 +49,7 @@ cat ./p1.tmp | awk '(NF>2 && $2==":"){ print $0 }' > ./p2.tmp matched=0 for i in $PACKAGES ; do - line=`grep $i ./p2.tmp` + line=`grep "^ *$i" ./p2.tmp` RETVAL=$? if test "x$RETVAL" = x0 ; then matched=1 @@ -497,6 +497,18 @@ done +if test -f ./.genmakerc ; then + echo + echo "WARNING: genmake2 has detected a copy of the old-style \"./.genmakerc\"" + echo " file. This file format is no longer supported. Please see:" + echo + echo " http://mitgcm.org/devel_HOWTO/" + echo + echo " for directions on how to setup and use the new \"genmake2\" input" + echo " files and send an email to MITgcm-support@mitgcm.org if you want help." + echo +fi + if test "x${ROOTDIR}" = x ; then if test "${PWD##/*/}" = "bin" -a -d ../model -a -d ../eesup -a -d ../pkg ; then ROOTDIR=".."