aboutsummaryrefslogtreecommitdiffstats
path: root/bin/brew
diff options
context:
space:
mode:
authorMax Howell2009-08-12 13:43:51 +0100
committerMax Howell2009-08-12 13:43:51 +0100
commitbfbcdb2334fe21439e25349f05e4cee6d32a53a2 (patch)
tree5fd9e8e88f73b81e0af1160d441fff59fdd6853b /bin/brew
parent7e45879baae7708015fb8a52f311814fb8db66cb (diff)
downloadhomebrew-bfbcdb2334fe21439e25349f05e4cee6d32a53a2.tar.bz2
brew diy command
Automagically determines prefix to install to for DIY installations. README amended.
Diffstat (limited to 'bin/brew')
-rwxr-xr-xbin/brew4
1 files changed, 4 insertions, 0 deletions
diff --git a/bin/brew b/bin/brew
index 06c5a2cba..575694fdb 100755
--- a/bin/brew
+++ b/bin/brew
@@ -66,6 +66,7 @@ begin
else
Process.wait pid
end
+ #FIXME I don't think $? represents the exit code from the child fork…
exit! $? if $? != 0 # exception in other brew will be visible on screen
end
@@ -114,6 +115,9 @@ begin
exec "mate", *ARGV.named.collect {|name| make name}
end
+ when 'diy'
+ puts diy
+
when 'info', 'abv'
if ARGV.named_empty?
puts `ls #{HOMEBREW_CELLAR} | wc -l`.strip+" kegs, "+HOMEBREW_CELLAR.abv