[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gnulib-tool.py: Accept valid make syntax for escaped newlines.
From: |
Bruno Haible |
Subject: |
Re: gnulib-tool.py: Accept valid make syntax for escaped newlines. |
Date: |
Tue, 02 Apr 2024 14:36:45 +0200 |
Collin Funk wrote:
> I noticed that in a few places where gnulib-tool.sh uses
> 'combine_lines', gnulib-tool.py uses 'remove_backslash_newline'.
>
> These functions behave differently. Using this Makefile:
>
> $ cat Makefile
>
> FILES = file1.c\
> file2.c\
> file3.c
>
> all:
> @echo $(FILES)
>
> $ make
> file1.c file2.c file3.c
>
> The 'combine_lines' functions adds spaces when replacing the backslash
> newlines. The 'remove_backslash_newline' doesn't. In other words, we
> would get this string returned in gnulib-tool.py:
>
> file1.cfile2.cfile3.c
Very good point!
Patch applied. Many thanks!
Bruno