/[MITgcm]/MITgcm/tools/genmake2
ViewVC logotype

Diff of /MITgcm/tools/genmake2

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.153 by edhill, Fri Jul 14 16:39:39 2006 UTC revision 1.154 by edhill, Sat Aug 12 03:47:36 2006 UTC
# Line 1352  fi Line 1352  fi
1352  #  Find the MITgcm ${ROOTDIR}  #  Find the MITgcm ${ROOTDIR}
1353  if test "x${ROOTDIR}" = x ; then  if test "x${ROOTDIR}" = x ; then
1354      tmp=`echo $PWD | sed -e 's/\// /g' | $AWK '{print $NR}'`      tmp=`echo $PWD | sed -e 's/\// /g' | $AWK '{print $NR}'`
1355      if test "x$tmp" = "xbin" -a -d ../model -a -d ../eesup -a -d ../pkg ; then      if test "x$tmp" = "xbin" -a -d ../model -a -d ../eesupp -a -d ../pkg ; then
1356          ROOTDIR=".."          ROOTDIR=".."
1357      else      else
1358          for d in . .. ../.. ../../.. ../../../.. ../../../../.. ; do          for d in . .. ../.. ../../.. ../../../.. ../../../../.. ; do
# Line 1818  if test -r $ROOTDIR"/eesupp/src/Makefile Line 1818  if test -r $ROOTDIR"/eesupp/src/Makefile
1818      fi      fi
1819  fi  fi
1820    
1821  #same for exch2  #same for pkg/exch2 and pkg/regrid
1822  if test -r $ROOTDIR"/pkg/exch2/Makefile" ; then  for pdir in exch2 regrid ; do
1823      echo "  Making source files in exch2 from  templates"      if test -r $ROOTDIR"/pkg/${pdir}/Makefile" ; then
1824      ( cd $ROOTDIR"/pkg/exch2/" && $MAKE ) > make_exch2.errors 2>&1          echo "  Making source files in pkg/${pdir} from templates"
1825      RETVAL=$?          ( cd $ROOTDIR"/pkg/"${pdir} && $MAKE ) > make_${pdir}.errors 2>&1
1826      if test "x${RETVAL}" = x0 ; then          RETVAL=$?
1827          rm -f make_exch2.errors          if test "x${RETVAL}" = x0 ; then
1828      else              rm -f make_${pdir}.errors
1829          echo "Error: problem encountered while building source files in exch2:"          else
1830          cat make_exch2.errors 1>&2              echo "Error: problem encountered while building source files in pkg/${pdir}:"
1831          exit 1              cat make_${pdir}.errors 1>&2
1832                exit 1
1833            fi
1834      fi      fi
1835  fi  done
1836    
1837  printf "\n===  Determining package settings  ===\n"  printf "\n===  Determining package settings  ===\n"
1838  if  test "x${PDEPEND}" = x ; then  if  test "x${PDEPEND}" = x ; then

Legend:
Removed from v.1.153  
changed lines
  Added in v.1.154

  ViewVC Help
Powered by ViewVC 1.1.22