* lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
use it. [ruby-core:10909] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@12524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
8cc8c9f9a1
commit
13349fd176
@ -1,4 +1,7 @@
|
|||||||
Tue Jun 12 14:44:38 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Tue Jun 12 14:53:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
|
||||||
|
use it. [ruby-core:10909]
|
||||||
|
|
||||||
* lib/mkmf.rb (find_header): use header names in the message.
|
* lib/mkmf.rb (find_header): use header names in the message.
|
||||||
|
|
||||||
|
@ -181,6 +181,7 @@ module Logging
|
|||||||
@orgerr = $stderr.dup
|
@orgerr = $stderr.dup
|
||||||
@orgout = $stdout.dup
|
@orgout = $stdout.dup
|
||||||
@postpone = 0
|
@postpone = 0
|
||||||
|
@quiet = $extmk
|
||||||
|
|
||||||
def self::open
|
def self::open
|
||||||
@log ||= File::open(@logfile, 'w')
|
@log ||= File::open(@logfile, 'w')
|
||||||
@ -224,6 +225,10 @@ module Logging
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
class << self
|
||||||
|
attr_accessor :quiet
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def xsystem command
|
def xsystem command
|
||||||
@ -550,7 +555,7 @@ def append_library(libs, lib)
|
|||||||
end
|
end
|
||||||
|
|
||||||
def message(*s)
|
def message(*s)
|
||||||
unless $extmk and not $VERBOSE
|
unless Logging.quiet and not $VERBOSE
|
||||||
printf(*s)
|
printf(*s)
|
||||||
$stdout.flush
|
$stdout.flush
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user