git-flow-avh: add petervanderdoes' git-flow-completion

Closes Homebrew/homebrew#17809.

Signed-off-by: Jack Nagel <jacknagel@gmail.com>
master
Justin de Vesine 2013-03-04 16:16:17 -07:00 committed by Jack Nagel
parent df0b16ece6
commit 2d483adb56
1 changed files with 13 additions and 0 deletions

View File

@ -1,5 +1,13 @@
require 'formula' require 'formula'
class GitFlowAvhCompletion < Formula
homepage 'https://github.com/petervanderdoes/git-flow-completion'
url 'https://github.com/petervanderdoes/git-flow-completion/tarball/0.4.2'
sha1 '0a36ae6fda83b6ba0251f4eea3a957f94f5467b7'
head 'https://github.com/petervanderdoes/git-flow-completion.git', :branch => 'develop'
end
class GitFlowAvh < Formula class GitFlowAvh < Formula
homepage 'https://github.com/petervanderdoes/gitflow' homepage 'https://github.com/petervanderdoes/gitflow'
url 'https://github.com/petervanderdoes/gitflow/archive/1.5.0.tar.gz' url 'https://github.com/petervanderdoes/gitflow/archive/1.5.0.tar.gz'
@ -13,6 +21,11 @@ class GitFlowAvh < Formula
def install def install
system "make", "prefix=#{prefix}", "install" system "make", "prefix=#{prefix}", "install"
GitFlowAvhCompletion.new('git-flow-avh-completion').brew do
(prefix+'etc/bash_completion.d').install "git-flow-completion.bash"
(share+'zsh/site-functions').install "git-flow-completion.zsh"
end
end end
def caveats; <<-EOS.undent def caveats; <<-EOS.undent