diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-21 00:25:58 -0800 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2013-01-21 00:25:58 -0800 |
| commit | 04941bc1634335c8f7fca3bafc68ca2c25969faf (patch) | |
| tree | 4f4515f5cebddf0f17d967d94072f7cfc627a9a8 /tasks/ruby_ext.rake | |
| parent | 8e86ff2283d427b5cb2a02607e1aab998cb5090c (diff) | |
| parent | 300f0d548b956aa6d36e1768a96fd8ec6d400297 (diff) | |
| download | mruby-04941bc1634335c8f7fca3bafc68ca2c25969faf.tar.gz mruby-04941bc1634335c8f7fca3bafc68ca2c25969faf.zip | |
Merge pull request #761 from bovi/beautify-build
Beautify build process output
Diffstat (limited to 'tasks/ruby_ext.rake')
| -rw-r--r-- | tasks/ruby_ext.rake | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/tasks/ruby_ext.rake b/tasks/ruby_ext.rake index ebd499063..22a8409d4 100644 --- a/tasks/ruby_ext.rake +++ b/tasks/ruby_ext.rake @@ -33,3 +33,26 @@ class Symbol proc { |obj, *args| obj.send(self, *args) } end end + +$pp_show = true + +if $verbose.nil? + unless 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(msg) + puts msg if $pp_show +end |
