[MITgcm-devel] genmake2 fails with netcdf on SUN

Alistair Adcroft adcroft at mit.edu
Thu Jan 6 09:48:57 EST 2005


sed 'y/abc.../ABC.../'


chris hill wrote:
> 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
>>
> 
> _______________________________________________
> MITgcm-devel mailing list
> MITgcm-devel at mitgcm.org
> http://dev.mitgcm.org/mailman/listinfo/mitgcm-devel


-- 
Dr Alistair Adcroft            http://www.mit.edu/~adcroft
MIT Climate Modeling Initiative        tel: (617) 253-5938
EAPS 54-1624,  77 Massachusetts Ave,  Cambridge,  MA,  USA



More information about the MITgcm-devel mailing list