[MITgcm-devel] genmake2 fails with netcdf on SUN
chris hill
cnh at mit.edu
Thu Jan 6 09:17:52 EST 2005
Hi Ed,
Can't we just use
extn=`echo $sf | $AWK -F. '{print $NF}'`
since it is the more portable form?
Thanks,
Chris
Martin Losch wrote:
> Hi Ed,
> I am sorry that this Sun business is taking so much of your time.
> pkg/mnc/Makefile works for me now. Thanks.
> With the recent changes, have your tried to generate a Makefile with the
> following awk: /usr/bin/awk? I find that /usr/bin/awk swallows this line
> (and does the right thing)
> extn=`echo $sf | $AWK -F. '{print $NF}'`
> but not this one
> # extn=`echo $sf | $AWK 'BEGIN {FS="."}; {print $NF}'`
> But as I said before, this problem is not the only problem with awk.
> Should we really spend time on sorting this out, given that the line
> AWK=gawk or AWK=nawk in the build options file takes care of everything?
> (There are also serios problems with xmakedepend if AWK=awk!!!)
>
> As far as I know awk is really oawk (o=old) and nawk (new awk) is or
> should be the standard (source: Unix in a Nutshell, 1994).
>
> Martin
>
>
> On Jan 5, 2005, at 11:34 PM, Ed Hill wrote:
>
>> On Wed, 2005-01-05 at 10:32 -0500, Alistair Adcroft wrote:
>>
>>> Martin
>>>
>>> Why don't you either
>>> 1) Replace the $< and $@ macros
>>> or
>>> 2) Change the case of one of the file names, if there are plans to
>>> have many more files
>>>
>>> I'm sure Ed will be happy for you to do either because it will lead to
>>> him getting less abuse from you. :-)
>>
>>
>>
>> OK, I did the above. And I spent part of the day doing builds on
>> slough.mit.edu -- more changes to come...
>>
>> Ed
>>
>> --
>> Edward H. Hill III, PhD
>> office: MIT Dept. of EAPS; Rm 54-1424; 77 Massachusetts Ave.
>> Cambridge, MA 02139-4307
>> emails: eh3 at mit.edu ed at eh3.com
>> URLs: http://web.mit.edu/eh3/ http://eh3.com/
>> phone: 617-253-0098
>> fax: 617-253-4464
>>
>> _______________________________________________
>> 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
>
More information about the MITgcm-devel
mailing list