aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/bash-completion.rb
diff options
context:
space:
mode:
authorErlend FinvÄg2009-09-03 08:10:36 +0200
committerMax Howell2009-09-03 18:02:26 +0100
commitb976fce418c77b494d6d4a00639029044243f2a0 (patch)
treed2035af024a1437c0d97705eca54d6fa1db7e2de /Library/Formula/bash-completion.rb
parenta996acfb0221b3e3cb56cad6c799e3fab4a8e5b3 (diff)
downloadhomebrew-b976fce418c77b494d6d4a00639029044243f2a0.tar.bz2
Bash Completion formula
Diffstat (limited to 'Library/Formula/bash-completion.rb')
-rw-r--r--Library/Formula/bash-completion.rb25
1 files changed, 25 insertions, 0 deletions
diff --git a/Library/Formula/bash-completion.rb b/Library/Formula/bash-completion.rb
new file mode 100644
index 000000000..acbbef2c4
--- /dev/null
+++ b/Library/Formula/bash-completion.rb
@@ -0,0 +1,25 @@
+require 'brewkit'
+
+class BashCompletion <Formula
+ @url='http://bash-completion.alioth.debian.org/files/bash-completion-1.0.tar.gz'
+ @homepage='http://bash-completion.alioth.debian.org/'
+ @md5='cd1c5648272917fbe0eef4ba30bb93f4'
+ @head='git://git.debian.org/git/bash-completion/bash-completion.git'
+
+ def install
+ system "./configure", "--prefix=#{prefix}"
+ system "make install"
+ inreplace etc+'bash_completion', 'etc/bash_completion', "#{etc}/bash_completion"
+ end
+
+ def caveats
+ puts <<-EOS
+==============================================================
+Add the following lines to your ~/.profile file:
+if [ -f `brew --prefix`/etc/bash_completion ]; then
+ . `brew --prefix`/etc/bash_completion
+fi
+==============================================================
+ EOS
+ end
+end