git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] Makefile: tweak sed invocation

From
Eric Sunshine <sunshine@sunshineco.com>
Date
Jun 25, 2018, 20:15 UTC
Message-ID
<CAPig+cQxAxFUFE8j2O7iaZoAby9ioNd6Wf1OVAr5qU7kTrQOyQ@mail.gmail.com>
In-Reply-To
<1529954005-18189-1-git-send-email-asedeno@mit.edu>
On Mon, Jun 25, 2018 at 3:18 PM Alejandro R. Sedeño <asedeno@mit.edu> wrote:
> With GNU sed, the r command doesn't care if a space separates it and
> the filename it reads from.
>
> With SunOS sed, the space is required.

MacOS and the various BSD's ship with BSD 'sed', not GNU 'sed', so it seemed prudent to check this change against them as well, which I did, and can report that it does not cause any regression on those platforms.

Therefore, the patch looks good. Thanks.
Show 12 quoted lines
> Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
> ---
> diff --git a/Makefile b/Makefile
> @@ -2109,7 +2109,7 @@ $(SCRIPT_PERL_GEN): % : %.perl GIT-PERL-DEFINES GIT-PERL-HEADER GIT-VERSION-FILE
>         $(QUIET_GEN)$(RM) $@ $@+ && \
>         sed -e '1{' \
>             -e '        s|#!.*perl|#!$(PERL_PATH_SQ)|' \
> -           -e '        rGIT-PERL-HEADER' \
> +           -e '        r GIT-PERL-HEADER' \
>             -e '        G' \
>             -e '}' \
>             -e 's/@@GIT_VERSION@@/$(GIT_VERSION)/g' \
Previous: Alejandro R. SedeñoNext: Alejandro R. Sedeño
Message 2 of 4 in “Makefile: tweak sed invocation”
  1. Makefile: tweak sed invocationAlejandro R. Sedeño, Jun 25, 2018
  2. Eric SunshineJun 25, 2018
  3. Alejandro R. SedeñoJun 25, 2018
  4. Alejandro R. SedeñoJul 2, 2018

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.