--- MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/02/16 15:39:22 1.2 +++ MITgcm_contrib/ESMF/global_ocean.128x64x15/build.sh 2004/02/22 02:56:19 1.3 @@ -4,6 +4,10 @@ # setenv BUILDROOT `pwd` setenv COMP_PROF blackforest +#setenv COMP_PROF faulks +source mytools/comp_profile.BASE +source mytools/comp_profile.${COMP_PROF} +setenv TCSH_PATH `which tcsh` cd run if ( -f Makefile ) then make Clean @@ -11,8 +15,18 @@ # 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 +${gm2command} ${gm2mods} ${gm2optfile} ${gm2adoptfile} ${gm2standarddirs} 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