bash-completion: disable install of brew's script

If you install bash-completion before git or something else that creates
the bash_completion.d folder, the install of bash-completion itself
will fail. Commenting out until a proper fix can be made.
This commit is contained in:
Adam Vandenberg committed 2011-03-13 12:05:09 -07:00
1 parent 6df37d0534
commit 1394de309f
1 file changed
+10 -5
+10 -5
View File
@@ -15,15 +15,20 @@ class BashCompletion < Formula
system "./configure", "--prefix=#{prefix}"
system "make install"
ln_s "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d" unless
File.exists? "#{etc}/bash_completion.d/brew_bash_completion.sh" or File.symlink? "#{etc}/bash_completion.d/brew_bash_completion.sh"
# Cause the build to fails if you haven't already installed git or something else that
# creates a bash_completion.d
# ln_s "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d" unless
# File.exists? "#{etc}/bash_completion.d/brew_bash_completion.sh" or File.symlink? "#{etc}/bash_completion.d/brew_bash_completion.sh"
end
def caveats; <<-EOS
Add the following lines to your ~/.bash_profile file:
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
if [ -f `brew --prefix`/etc/bash_completion ]; then
. `brew --prefix`/etc/bash_completion
fi
To install Homebrew's own completion script:
ln "#{HOMEBREW_PREFIX}/Library/Contributions/brew_bash_completion.sh", "#{etc}/bash_completion.d"
EOS
end
end