Makefile: tweak sed invocation
authorAlejandro R. Sedeño <asedeno@mit.edu>
Mon, 25 Jun 2018 19:13:25 +0000 (15:13 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 26 Jun 2018 18:46:01 +0000 (11:46 -0700)
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.

Signed-off-by: Alejandro R. Sedeño <asedeno@mit.edu>
Reviewed-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Makefile
index 2ba24035f55d8cc5b10aaf44bddbf4c3d86bf089..50138e85eb2cb81d364a4a406f359652243a36bd 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -2086,7 +2086,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' \