Le 31 mars 2012 à 13:55, Romain Geissler a écrit :
>
> Le 31 mars 2012 à 12:27, Basile Starynkevitch a écrit :
>
>> I am surprised of your patch which indeed contains gcc/melt-build.tpl:
>>
>> -## GAWK is needed, the GNU awk [+ (. (tpl-file-line))+]
>> -GAWK ?= gawk
>> +## AWK is needed [+ (. (tpl-file-line))+]
>> +AWK ?= awk
>>
>>
>> I really need GNU awk (and I may depend upon GNU extensions of awk). AFAIK,
>> GCC also
>> requires *GNU* awk specifically (and not some other awk). Why the above
>> patch? If GNU awk
>> is called awk on MacOS (like it is on some Linux distributions) just call it
>> still GAWK in
>> makefile things! I'm pretty sure to not be the only one with this
>> convention, that GAWK in
>> Makefile meen that GNU extensions of awk is necessary.
>
> Are you sure you really need GNU awk ? I don't think so ! In my patch, i
> replaced every GAWK
> uses in Melt (only the melt files that you ship in the packaged version of
> Melt, there are still
> somes instances of Gawk in /contrib/MELT-Plugin-Makefile and in
> /contrib/build-melt-plugin.sh
> but those are only for packagers, not for melt users). The gawk usage i
> replaced were trivial
> uses that DO NOT use specific GNU awk features (on printing and using the
> {next} command).
I forgot to add add that the awk usages you perform are so trivial that grep
will also fits your needs
and is a lower dependency than awk.