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 | ef7770c87b61ada97f911c563a89dbdba4985fe1 (patch) | |
| tree | 1ccc77908b84db2bd6e6442251088fc219597731 | |
| parent | ad94c1386b5526284064c745e3e09c9a06b3b87c (diff) | |
* 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/branches/ruby_1_8@12524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | lib/mkmf.rb | 7 |
2 files changed, 10 insertions, 2 deletions
@@ -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 c808f10e32..338b7c5242 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -171,6 +171,7 @@ module Logging @orgerr = $stderr.dup @orgout = $stdout.dup @postpone = 0 + @quiet = $extmk def self::open @log ||= File::open(@logfile, 'w') @@ -214,6 +215,10 @@ module Logging end end end + + class << self + attr_accessor :quiet + end end def xsystem command @@ -533,7 +538,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 |
