Show information messages after basic error checking.
This commit is contained in:
parent
1004df181e
commit
51f935c499
14
bin/brew
14
bin/brew
@ -74,13 +74,6 @@ begin
|
||||
|
||||
require 'brewkit'
|
||||
|
||||
if ARGV.verbose?
|
||||
ohai "Build Environment"
|
||||
%w[CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX MACOSX_DEPLOYMENT_TARGET].each do |f|
|
||||
puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty?
|
||||
end
|
||||
end
|
||||
|
||||
if ARGV.interactive? and ARGV.formulae.length > 1
|
||||
# the reason for this is interactive mode is a little tricky to do
|
||||
# with more than one formula, AND I can't think of a time where you'd
|
||||
@ -90,6 +83,13 @@ begin
|
||||
raise "Interactive mode can only be used with one formula argument"
|
||||
end
|
||||
|
||||
if ARGV.verbose?
|
||||
ohai "Build Environment"
|
||||
%w[CFLAGS LDFLAGS CPPFLAGS MAKEFLAGS CC CXX MACOSX_DEPLOYMENT_TARGET].each do |f|
|
||||
puts "#{f}: #{ENV[f]}" unless ENV[f].to_s.empty?
|
||||
end
|
||||
end
|
||||
|
||||
warn_about_macports_or_fink # keep warning before dependency resolution
|
||||
|
||||
unless ARGV.force?
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user