49 |
cat ./p1.tmp | awk '(NF>2 && $2==":"){ print $0 }' > ./p2.tmp |
cat ./p1.tmp | awk '(NF>2 && $2==":"){ print $0 }' > ./p2.tmp |
50 |
matched=0 |
matched=0 |
51 |
for i in $PACKAGES ; do |
for i in $PACKAGES ; do |
52 |
line=`grep $i ./p2.tmp` |
line=`grep "^ *$i" ./p2.tmp` |
53 |
RETVAL=$? |
RETVAL=$? |
54 |
if test "x$RETVAL" = x0 ; then |
if test "x$RETVAL" = x0 ; then |
55 |
matched=1 |
matched=1 |
497 |
|
|
498 |
done |
done |
499 |
|
|
500 |
|
if test -f ./.genmakerc ; then |
501 |
|
echo |
502 |
|
echo "WARNING: genmake2 has detected a copy of the old-style \"./.genmakerc\"" |
503 |
|
echo " file. This file format is no longer supported. Please see:" |
504 |
|
echo |
505 |
|
echo " http://mitgcm.org/devel_HOWTO/" |
506 |
|
echo |
507 |
|
echo " for directions on how to setup and use the new \"genmake2\" input" |
508 |
|
echo " files and send an email to MITgcm-support@mitgcm.org if you want help." |
509 |
|
echo |
510 |
|
fi |
511 |
|
|
512 |
if test "x${ROOTDIR}" = x ; then |
if test "x${ROOTDIR}" = x ; then |
513 |
if test "${PWD##/*/}" = "bin" -a -d ../model -a -d ../eesup -a -d ../pkg ; then |
if test "${PWD##/*/}" = "bin" -a -d ../model -a -d ../eesup -a -d ../pkg ; then |
514 |
ROOTDIR=".." |
ROOTDIR=".." |