diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-12 05:52:19 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-06-12 05:52:19 +0000 |
| commit | 9a495d5a0e748bf2e83fb7297258259e0f9b9828 (patch) | |
| tree | c8e10a02be6f6fe31dd9b0703d7175b966ee69b4 /lib | |
| parent | d95fee25258f4ac0c4a44bc970ed5a3ddaf71f4a (diff) | |
| download | ruby-9a495d5a0e748bf2e83fb7297258259e0f9b9828.tar.gz ruby-9a495d5a0e748bf2e83fb7297258259e0f9b9828.tar.xz ruby-9a495d5a0e748bf2e83fb7297258259e0f9b9828.zip | |
* lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
use it. [ruby-core:10909]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@12524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/mkmf.rb | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb index fa1339625..e8b72b4ce 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -181,6 +181,7 @@ module Logging @orgerr = $stderr.dup @orgout = $stdout.dup @postpone = 0 + @quiet = $extmk def self::open @log ||= File::open(@logfile, 'w') @@ -224,6 +225,10 @@ module Logging end end end + + class << self + attr_accessor :quiet + end end def xsystem command @@ -550,7 +555,7 @@ def append_library(libs, lib) end def message(*s) - unless $extmk and not $VERBOSE + unless Logging.quiet and not $VERBOSE printf(*s) $stdout.flush end |
