From bb98fd78c3d14c550187a96b9ed6975e8b719a68 Mon Sep 17 00:00:00 2001 From: KOBAYASHI Shuji Date: Sat, 28 Dec 2019 16:55:25 +0900 Subject: Use `Rake.verbose` instead of `$verbose` and `$pp_show` in build scripts The incompatibility that the commands of `FileUtils` origin output verbose by default due to the changes in d8a5163b and 26e6e75b is also fixed. --- lib/mruby-core-ext.rb | 21 +-------------------- 1 file changed, 1 insertion(+), 20 deletions(-) (limited to 'lib/mruby-core-ext.rb') diff --git a/lib/mruby-core-ext.rb b/lib/mruby-core-ext.rb index 7b78bfa91..433f1bb1a 100644 --- a/lib/mruby-core-ext.rb +++ b/lib/mruby-core-ext.rb @@ -20,27 +20,8 @@ class String end end -$pp_show = true - -if $verbose.nil? - if Rake.respond_to?(:verbose) && !Rake.verbose.nil? - if Rake.verbose.class == TrueClass - # verbose message logging - $pp_show = false - else - $pp_show = true - Rake.verbose(false) - end - else - # could not identify rake version - $pp_show = false - end -else - $pp_show = false if $verbose -end - def _pp(cmd, src, tgt=nil, options={}) - return unless $pp_show + return if Rake.verbose width = 5 template = options[:indent] ? "%#{width*options[:indent]}s %s %s" : "%-#{width}s %s %s" -- cgit v1.2.3