aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-12 05:52:19 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-06-12 05:52:19 +0000
commit13349fd176f80c21b95c05f35d127f63760da561 (patch)
treec8e10a02be6f6fe31dd9b0703d7175b966ee69b4
parent8cc8c9f9a19a18463cf10c05368dc5e42bd2e45e (diff)
downloadruby-13349fd176f80c21b95c05f35d127f63760da561.tar.gz
* 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
-rw-r--r--ChangeLog5
-rw-r--r--lib/mkmf.rb7
2 files changed, 10 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 319302b0f0..6cfd40df29 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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.
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index fa1339625c..e8b72b4ce2 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