Blame SOURCES/0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch

842ec7
From 86c3e2b5188579bff1ff981910462ad5e563044b Mon Sep 17 00:00:00 2001
842ec7
From: Todd Zullinger <tmz@pobox.com>
842ec7
Date: Fri, 4 Jan 2013 11:54:21 -0500
842ec7
Subject: [PATCH] git-subtree: Use gitexecdir instead of libexecdir
842ec7
842ec7
When the git subtree Makefile includes config.mak from the toplevel,
842ec7
it's useful to have the same variables set globally applied.  Using
842ec7
gitexecdir instead of libexecdir respects the global settings more
842ec7
consistently.
842ec7
842ec7
Remove the unused gitdir variable as well.
842ec7
---
842ec7
 contrib/subtree/Makefile |    5 ++---
842ec7
 1 files changed, 2 insertions(+), 3 deletions(-)
842ec7
842ec7
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
842ec7
index 36ae3e4..f87b945 100644
842ec7
--- a/contrib/subtree/Makefile
842ec7
+++ b/contrib/subtree/Makefile
842ec7
@@ -2,9 +2,8 @@
842ec7
 -include ../../config.mak
842ec7
 
842ec7
 prefix ?= /usr/local
842ec7
+gitexecdir ?= $(prefix)/libexec/git-core
842ec7
 mandir ?= $(prefix)/share/man
842ec7
-libexecdir ?= $(prefix)/libexec/git-core
842ec7
-gitdir ?= $(shell git --exec-path)
842ec7
 man1dir ?= $(mandir)/man1
842ec7
 
842ec7
 gitver ?= $(word 3,$(shell git --version))
842ec7
@@ -30,7 +29,7 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
842ec7
 doc: $(GIT_SUBTREE_DOC)
842ec7
 
842ec7
 install: $(GIT_SUBTREE)
842ec7
-	$(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(libexecdir)
842ec7
+	$(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(gitexecdir)
842ec7
 
842ec7
 install-doc: install-man
842ec7
 
842ec7
-- 
842ec7
1.7.6
842ec7