From: Michael J Gruber Date: Wed, 26 May 2010 14:24:34 +0000 (+0200) Subject: Makefile: reenable install with NO_CURL X-Git-Tag: v1.7.2-rc0~3^2~9^2~1 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=70b89f87;p=git.git Makefile: reenable install with NO_CURL Setting NO_CURL leaves some variables like REMOTE_CURL_ALIASES empty, which creates no fun when for-looping over $(REMOTE_CURL_ALIASES) unconditionally. Make it conditional. Reported-by: Paul Walker Signed-off-by: Michael J Gruber Signed-off-by: Junio C Hamano --- diff --git a/Makefile b/Makefile index 5b8680660..02d6ea39d 100644 --- a/Makefile +++ b/Makefile @@ -1841,12 +1841,13 @@ endif ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \ cp "$$execdir/git$X" "$$execdir/$$p" || exit; \ done; } && \ - { for p in $(REMOTE_CURL_ALIASES); do \ + { test x"$(REMOTE_CURL_ALIASES)" = x || \ + { for p in $(REMOTE_CURL_ALIASES); do \ $(RM) "$$execdir/$$p" && \ ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \ ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \ cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \ - done; } && \ + done; } ; } && \ ./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X" install-doc: