From 1394de309fe4bfccc3eee0892713d83f771ac3ff Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 13 Mar 2011 12:04:22 -0700 Subject: 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. --- Library/Formula/bash-completion.rb | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'Library') diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb index a7401646e..33016e604 100644 --- a/Library/Formula/bash-completion.rb +++ b/Library/Formula/bash-completion.rb @@ -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 -- cgit v1.2.3