From 41606d72daf60bf8ff990310e6490aca91d8d06f Mon Sep 17 00:00:00 2001 From: Adam Backstrom Date: Mon, 24 Sep 2012 13:00:46 -0400 Subject: git: also install git-subtree The git-subtree formula was removed by b3a0a433c, as subtree is now delivered with mainline Git. This commit ensures subtree is available in the default install. The manpage is not installed. See #12897. Closes #15085. Signed-off-by: Adam Vandenberg --- Library/Formula/git.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'Library/Formula/git.rb') diff --git a/Library/Formula/git.rb b/Library/Formula/git.rb index 1cd145269..41a7ff8fa 100644 --- a/Library/Formula/git.rb +++ b/Library/Formula/git.rb @@ -57,6 +57,14 @@ class Git < Formula system "make", "clean" end + # Install git-subtree + cd 'contrib/subtree' do + system "make", "CC=#{ENV.cc}", + "CFLAGS=#{ENV.cflags}", + "LDFLAGS=#{ENV.ldflags}" + bin.install 'git-subtree' + end + # install the completion script first because it is inside 'contrib' (prefix+'etc/bash_completion.d').install 'contrib/completion/git-completion.bash' (prefix+'etc/bash_completion.d').install 'contrib/completion/git-prompt.sh' -- cgit v1.2.3