Show information messages after basic error checking.

This commit is contained in:
Max Howell 2009-09-27 23:56:03 +01:00
parent 1004df181e
commit 51f935c499

View File

@ -74,13 +74,6 @@ begin
require 'brewkit' 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 if ARGV.interactive? and ARGV.formulae.length > 1
# the reason for this is interactive mode is a little tricky to do # 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 # 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" raise "Interactive mode can only be used with one formula argument"
end 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 warn_about_macports_or_fink # keep warning before dependency resolution
unless ARGV.force? unless ARGV.force?