aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2011-03-13 12:04:22 -0700
committerAdam Vandenberg2011-03-13 12:05:09 -0700
commit1394de309fe4bfccc3eee0892713d83f771ac3ff (patch)
tree45b24b98a3f526bfe915397ea21669885ceaf765 /Library
parent6df37d053434277794bc79a7d786f2120c8be2b8 (diff)
downloadhomebrew-1394de309fe4bfccc3eee0892713d83f771ac3ff.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/bash-completion.rb15
1 files changed, 10 insertions, 5 deletions
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