summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlejandro R. Sedeño <asedeno@mit.edu>2018-06-25 19:13:25 (GMT)
committerJunio C Hamano <gitster@pobox.com>2018-06-26 18:46:01 (GMT)
commit6600054e9b047e47a6dca0dc07076194b46e2720 (patch)
treec5ca0184a3c3f896d3a194f484abe2189f283bc7 /Makefile
parent64f982b8a791a8e9e612a103d05e5f01a08fce0f (diff)
downloadgit-6600054e9b047e47a6dca0dc07076194b46e2720.zip
git-6600054e9b047e47a6dca0dc07076194b46e2720.tar.gz
git-6600054e9b047e47a6dca0dc07076194b46e2720.tar.bz2
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>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2ba2403..50138e8 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' \