Merge branch 'hotfix/0.1.0.8.1' into develop

This commit is contained in:
iwata 2011-10-22 19:21:29 +09:00
commit 0a5436477e
2 changed files with 9 additions and 5 deletions

View file

@ -41,10 +41,14 @@ 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
* copy zsh completion function for zsh users
$ brew install --zsh-completion https://github.com/iwata/git-now/raw/master/git-now.rb
Show details
$ brew options https://github.com/iwata/git-now/raw/master/git-now.rb
### Manual installation
If you prefer a manual installation, please use the following instructions:

View file

@ -1,15 +1,15 @@
require 'formula'
class GitNow < Formula
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.8'
version '0.1.0.8'
url 'https://github.com/iwata/git-now.git', :tag => 'v0.1.0.8.1'
version '0.1.0.8.1'
head 'https://github.com/iwata/git-now.git', :branch => 'develop'
homepage 'https://github.com/iwata/git-now'
def options
[
['--gnu-getopt', "Link a gnu-getopt formula"],
['--zsh-completion', "copy zsh completion function file to $fpath"]
['--zsh-completion', "copy zsh completion function file to #{share}/zsh/functions"]
]
end
@ -26,7 +26,7 @@ class GitNow < Formula
if ARGV.include? '--gnu-getopt'
system "brew ln gnu-getopt"
end
if ARGV.include?('--zsh-completion')
if ARGV.include? '--zsh-completion'
zsh_functions_d = share + 'zsh/functions'
zsh_functions_d.install "etc/_git-now"
end