diff options
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Formula/bash-completion.rb | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb index bd92417ad..6646bb60a 100644 --- a/Library/Formula/bash-completion.rb +++ b/Library/Formula/bash-completion.rb @@ -7,20 +7,20 @@ class BashCompletion <Formula head 'git://git.debian.org/git/bash-completion/bash-completion.git' def install - inreplace "bash_completion", '/etc/bash_completion', "#{etc}/bash_completion" - inreplace "bash_completion", 'readlink -f', "readlink" + inreplace "bash_completion" do |s| + s.gsub! '/etc/bash_completion', "#{etc}/bash_completion" + s.gsub! "bash_completion", 'readlink -f', "readlink" + end + system "./configure", "--prefix=#{prefix}" system "make install" end - def caveats - puts <<-EOS -============================================================== + 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 -============================================================== EOS end end |
