On 1/21/21 11:37 AM, Ruediger Pluem wrote:
> 
> 
> On 1/16/21 2:43 PM, Graham Leggett wrote:
>> Hi all,
>>
>> A quick heads up on the update-changes mechanism, on MacOS the mechanism 
>> fails as follows, and the CHANGES file is lost (but retrievable from svn):
>>
>> Little-Net:httpd-2.4.x-3 minfrin$ make update-changes
>> awk: invalid -v option
>>
>> awk: invalid -v option
>>
>> It looks like the -v option is not portable?
> 
> Can you please try if the below patch fixes the issue on MacOs (for a quick 
> check I guess you could apply it directly to Makefile)?
> 
> Index: Makefile.in
> ===================================================================
> --- Makefile.in       (revision 1885229)
> +++ Makefile.in       (working copy)
> @@ -169,7 +169,7 @@
>  update-changes:
>       @for i in `find changes-entries -type f`; do \
>           cp CHANGES CHANGES.tmp ; \
> -         awk -vfname=$$i 'BEGIN{done = 0} \
> +         awk -v fname=$$i 'BEGIN{done = 0} \
>                           done == 0 && /^Changes with Apache /{ active = 1; 
> print; next}; \
>                           /^ *\*/ && active == 1 && done == 0{rec=$$0; 
> while(getline<fname){if (! ($$0 ~ /^ *$$/)){print}}printf
> "\n";print rec; active = 0; done = 1; next} //;' \
>           CHANGES.tmp > CHANGES ; \
> 
> 

Can anyone using MacOS confirm whether this fixes the issue?

Regards

RĂ¼diger

Reply via email to