summaryrefslogtreecommitdiffhomepage
path: root/tasks/ruby_ext.rake
diff options
context:
space:
mode:
authorYukihiro Matz Matsumoto <[email protected]>2013-01-21 17:31:12 +0900
committerYukihiro Matz Matsumoto <[email protected]>2013-01-21 17:31:12 +0900
commit17fa9927a3dbec1752ff383c39122980a49e66fe (patch)
tree5c7caa5334596bfe24ad5a83770b618c717295ee /tasks/ruby_ext.rake
parent117e2ec06544e02511a2b5d2164edb00908ebab2 (diff)
parent04941bc1634335c8f7fca3bafc68ca2c25969faf (diff)
downloadmruby-17fa9927a3dbec1752ff383c39122980a49e66fe.tar.gz
mruby-17fa9927a3dbec1752ff383c39122980a49e66fe.zip
resolve conflicts
Diffstat (limited to 'tasks/ruby_ext.rake')
-rw-r--r--tasks/ruby_ext.rake23
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