[MITgcm-devel] genmake2 fails with netcdf on SUN

chris hill cnh at mit.edu
Thu Jan 6 09:36:56 EST 2005


Hi Ed,

  I think the portable way to do this is

  echo ALLOW_something | tr 'abcdefghijklmnopqrstuvwxyz' 
'ABCDEFGHIJKLMNOPQRSTUVWXYZ'

Chris
Martin Losch wrote:
> More awk troubles:
> SunOS's awk (oawk) doesn't like the "toupper" command:
> 
>> rays1::MITgcm> echo ALLOW_something | awk '{print toupper($0)}'
>> ALLOW_something
>> rays1::MITgcm> echo ALLOW_something | nawk '{print toupper($0)}'
>> ALLOW_SOMETHING
>> rays1::MITgcm> echo ALLOW_something | gawk '{print toupper($0)}'
>> ALLOW_SOMETHING
> 
> This causes serious problems because all -DALLOW_PKG become -DALLOW_pkg 
> etc. My "Unix is a Nutshell" from 1994 even says that "toupper" is only 
> available in gawk, but apparently it works also in nawk.
> 
> After (quick-)fixing this problem (replaced $AWK with gawk in the 
> instances toupper appears in genmake2), everythings compiles and runs 
> with /usr/bin/awk on SunOS, Solaris 5.9.
> 
> Again, do we care about this? Or is it better to stick with gawk/nawk 
> and have these specified in all sunos_sun4u_* build options files?
> 
> Martin
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel
> 




More information about the MITgcm-devel mailing list