Use opt prefix for --prefix

Rationale: everyone thinks it points to the currently installed prefix, not the prefix of the formula that is newest and maybe not installed.

The previous behavior was unintentional and evidence proves it is not intuitive either.

I anticipate no regressions. And hope I am right!
This commit is contained in:
Max Howell 2012-09-12 22:09:46 -04:00
parent ea593cf61c
commit dd917bc105

View File

@ -3,7 +3,7 @@ module Homebrew extend self
if ARGV.named.empty? if ARGV.named.empty?
puts HOMEBREW_PREFIX puts HOMEBREW_PREFIX
else else
puts ARGV.formulae.map{ |f| f.installed_prefix } puts ARGV.formulae.map{ |f| "#{HOMEBREW_PREFIX}/opt/#{f}" }
end end
end end
end end