mirror of
https://github.com/iwata/git-now.git
synced 2026-09-10 07:26:29 -04:00
Merge branch 'hotfix/0.1.0.7'
This commit is contained in:
commit
82f7a70f3f
|
|
@ -41,7 +41,7 @@ If you're on a Mac and use [homebrew](http://github.com/mxcl/homebrew), it's sim
|
|||
|
||||
$ brew install --gnu-getopt https://github.com/iwata/git-now/raw/master/git-now.rb
|
||||
|
||||
* copy zsh completion function to ``fpath``
|
||||
* copy zsh completion function
|
||||
|
||||
$ brew install --zsh-completion https://github.com/iwata/git-now/raw/master/git-now.rb
|
||||
|
||||
|
|
|
|||
13
git-now.rb
13
git-now.rb
|
|
@ -1,8 +1,8 @@
|
|||
require 'formula'
|
||||
|
||||
class GitNow < Formula
|
||||
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.6'
|
||||
version '0.1.0.6'
|
||||
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.7'
|
||||
version '0.1.0.7'
|
||||
head 'https://github.com/iwata/git-now.git', :branch => 'develop'
|
||||
homepage 'https://github.com/iwata/git-now'
|
||||
|
||||
|
|
@ -17,16 +17,17 @@ class GitNow < Formula
|
|||
if ARGV.include? '--gnu-getopt'
|
||||
depends_on 'gnu-getopt'
|
||||
end
|
||||
if ARGV.include? '--zsh-completion'
|
||||
depends_on 'zsh'
|
||||
end
|
||||
|
||||
def install
|
||||
system "make", "prefix=#{prefix}", "install"
|
||||
if ARGV.include? '--gnu-getopt'
|
||||
system "brew ln gnu-getopt"
|
||||
end
|
||||
if ARGV.include?('--zsh-completion') && ENV.include?('FPATH')
|
||||
ENV['FPATH'].split(':').find do |path|
|
||||
system "cp etc/_git-now #{path}" if File.directory? path
|
||||
end
|
||||
if ARGV.include?('--zsh-completion')
|
||||
"#{share}/zsh/functions".install "etc/_git-now"
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue