--- MITgcm/tools/genmake2 2008/11/18 22:11:07 1.178 +++ MITgcm/tools/genmake2 2008/12/11 17:50:56 1.180 @@ -1,6 +1,6 @@ #! /usr/bin/env bash # -# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.178 2008/11/18 22:11:07 utke Exp $ +# $Header: /home/ubuntu/mnt/e9_copy/MITgcm/tools/genmake2,v 1.180 2008/12/11 17:50:56 utke Exp $ # # Makefile generator for MITgcm UV codes # created by cnh 03/98 @@ -1402,8 +1402,14 @@ fi # Find the MITgcm ${THISVER} -if test -f "${ROOTDIR}/doc/tag-index" ; then - THISVER=`grep '^checkpoint' ${ROOTDIR}/doc/tag-index | head -1` +version_file="${ROOTDIR}/doc/tag-index" +if test -f $version_file ; then + THISVER=`grep '^checkpoint' $version_file | head -1` +#- remove ./BUILD_INFO.h file if older than version_file + if test -f ./BUILD_INFO.h -a ./BUILD_INFO.h -ot $version_file ; then + echo " remove ./BUILD_INFO.h (older than ${version_file})" + rm -f ./BUILD_INFO.h + fi fi if test "x$MAKEFILE" = x ; then @@ -2999,7 +3005,7 @@ # canonicalizer ad_input_code_sf.w2f.pre.f$FS90: ad_input_code_sf.w2f.f$FS90 preProcess.py - ./preProcess.py -H \$< -o \$@ + ./preProcess.py --mode=reverse \$< -o \$@ # F -> WHIRL # note that the canonicalized version cuts off at col 72