504e60d2cd
Bugfixes & now with `hub merge` command! Signed-off-by: Adam Vandenberg <flangy@gmail.com>
23 lines
650 B
Ruby
23 lines
650 B
Ruby
require 'formula'
|
|
|
|
class Hub < Formula
|
|
url 'https://github.com/defunkt/hub/tarball/v1.10.0'
|
|
homepage 'http://defunkt.io/hub/'
|
|
head 'https://github.com/defunkt/hub.git'
|
|
md5 '7d15ba52525844367fd668cd54e658f8'
|
|
|
|
def install
|
|
system "rake", "install", "prefix=#{prefix}"
|
|
(prefix+'etc/bash_completion.d').install 'etc/hub.bash_completion.sh'
|
|
(share+'zsh/site-functions').install 'etc/hub.zsh_completion' => '_hub'
|
|
end
|
|
|
|
def caveats; <<-EOS.undent
|
|
Bash completion has been installed to:
|
|
#{etc}/bash_completion.d
|
|
|
|
zsh completion has been installed to:
|
|
#{HOMEBREW_PREFIX}/share/zsh/site-functions
|
|
EOS
|
|
end
|
|
end
|