diff options
| author | Adam Vandenberg | 2010-09-13 08:50:14 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-09-13 08:50:14 -0700 |
| commit | 429095f2fbb62364bffcbe498bbee3336ada0fcb (patch) | |
| tree | 083958b1d0a2e285cb12107c9635a86ef5e4f245 /Library | |
| parent | c963a35dcfaf09ad32ae4bdfa32146d67f22c14e (diff) | |
| download | homebrew-429095f2fbb62364bffcbe498bbee3336ada0fcb.tar.bz2 | |
bash-completion - remove puts and style tweaks
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 |
