git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] Makefile: Use the same source directory for "ln -s" as for "ln" / "cp"
@ 2015-02-05 15:51 Sebastian Schuberth
  2015-02-05 17:48 ` Kyle J. McKay
  0 siblings, 1 reply; 11+ messages in thread
From: Sebastian Schuberth @ 2015-02-05 15:51 UTC (permalink / raw)
  To: Git Mailing List, Junio C Hamano; +Cc: Jeff King, Jonathan Nieder

For consistency, we should use the same source for symbolic links as for
hard links and copies.

Signed-off-by: Sebastian Schuberth <sschuberth@gmail.com>
---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index c44eb3a..21f23cb 100644
--- a/Makefile
+++ b/Makefile
@@ -2265,14 +2265,14 @@ endif
         $(RM) "$$bindir/$$p" && \
         test -z "$(NO_INSTALL_HARDLINKS)" && \
         ln "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
-        ln -s "git$X" "$$bindir/$$p" 2>/dev/null || \
+        ln -s "$$bindir/git$X" "$$bindir/$$p" 2>/dev/null || \
         cp "$$bindir/git$X" "$$bindir/$$p" || exit; \
     done && \
     for p in $(BUILT_INS); do \
         $(RM) "$$execdir/$$p" && \
         test -z "$(NO_INSTALL_HARDLINKS)" && \
         ln "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
-        ln -s "git$X" "$$execdir/$$p" 2>/dev/null || \
+        ln -s "$$execdir/git$X" "$$execdir/$$p" 2>/dev/null || \
         cp "$$execdir/git$X" "$$execdir/$$p" || exit; \
     done && \
     remote_curl_aliases="$(REMOTE_CURL_ALIASES)" && \
@@ -2280,7 +2280,7 @@ endif
         $(RM) "$$execdir/$$p" && \
         test -z "$(NO_INSTALL_HARDLINKS)" && \
         ln "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
-        ln -s "git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
+        ln -s "$$execdir/git-remote-http$X" "$$execdir/$$p" 2>/dev/null || \
         cp "$$execdir/git-remote-http$X" "$$execdir/$$p" || exit; \
     done && \
     ./check_bindir "z$$bindir" "z$$execdir" "$$bindir/git-add$X"
-- 
2.1.2-mingw-1

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-02-05 22:45 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-05 15:51 [PATCH 1/2] Makefile: Use the same source directory for "ln -s" as for "ln" / "cp" Sebastian Schuberth
2015-02-05 17:48 ` Kyle J. McKay
2015-02-05 19:23   ` Junio C Hamano
2015-02-05 19:26     ` Sebastian Schuberth
2015-02-05 19:51       ` Jeff King
2015-02-05 20:29         ` Sebastian Schuberth
2015-02-05 20:45           ` Jeff King
2015-02-05 20:52             ` Sebastian Schuberth
2015-02-05 20:41         ` Kyle J. McKay
2015-02-05 20:59           ` Junio C Hamano
2015-02-05 22:44             ` Kyle J. McKay

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).