summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Alejandro R. Sedeño <asedeno@mit.edu>2018-06-25 15:13:25 -0400
committerLibravatar Junio C Hamano <gitster@pobox.com>2018-06-26 11:46:01 -0700
commit6600054e9b047e47a6dca0dc07076194b46e2720 (patch)
treec5ca0184a3c3f896d3a194f484abe2189f283bc7
parentMakefile: quote $INSTLIBDIR when passing it to sed (diff)
downloadtgif-6600054e9b047e47a6dca0dc07076194b46e2720.tar.xz
Makefile: tweak sed invocation
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>
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2ba24035f5..50138e85eb 100644
--- 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' \