git: fix installation of zsh completion.

Closes Homebrew/homebrew#16992.
This commit is contained in:
Mike McQuaid 2013-01-27 19:57:13 +00:00
parent ae5276fee3
commit 753b3dc008

View file

@ -65,9 +65,13 @@ class Git < Formula
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'
# install the completion scripts from 'contrib' first
(etc+'bash_completion.d').install 'contrib/completion/git-completion.bash'
(etc+'bash_completion.d').install 'contrib/completion/git-prompt.sh'
(share+'zsh/site-functions').install 'contrib/completion/git-completion.zsh' => '_git'
ln_s "#{etc}/bash_completion.d/git-completion.bash", "#{share}/zsh/site-functions"
(share+'git-core').install 'contrib'
# We could build the manpages ourselves, but the build process depends