--- MITgcm_contrib/ESMF/interface_test/build.sh 2004/02/16 15:45:05 1.1 +++ MITgcm_contrib/ESMF/interface_test/build.sh 2004/02/20 16:21:41 1.3 @@ -4,6 +4,7 @@ # setenv BUILDROOT `pwd` setenv COMP_PROF blackforest +setenv TCSH_PATH `which tcsh` cd run if ( -f Makefile ) then make Clean @@ -11,8 +12,21 @@ # ESMF component build. Creates an ESMF component that can be coupled through # the ESMF superstructure layer. -../../../tools/genmake2 -mods=../code -optfile=../../../tools/build_options/sp4 +../../../tools/genmake2 -mods=../code \ + -optfile=../../../tools/build_options/sp4 \ + -adoptfile=../../../tools/adjoint_options/adjoint_default \ + -standarddirs=" " make depend make small_f -ln -s ../mytools/* . + +# Copy the scripts from the downloa directory making platform specific mods +# along the way. +foreach f ( ../mytools/* ) + if ( -f $f ) then + cp $f . + cat $f | sed s'||'${TCSH_PATH}'|g' > temp.$$ + mv temp.$$ ${f:t} + chmod +x ${f:t} + endif +end ./mkmod.sh ocn