Move global function for build to `lib/mruby/core_ext.rb`
Because `_pp` is originally defined in `lib/mruby/core_ext.rb`, other global
functions are moved to the file.
MODIFY
Rakefile
Rakefile
@@ -33,12 +33,6 @@ load "#{MRUBY_ROOT}/tasks/benchmark.rake"
load "#{MRUBY_ROOT}/tasks/gitlab.rake"
load "#{MRUBY_ROOT}/tasks/doc.rake"
-def install_D(src, dst)
- rm_f dst
- mkdir_p File.dirname(dst)
- cp src, dst
-end
-
##############################
# generic build targets, rules
task :default => :all

MODIFY
lib/mruby/core_ext.rb
lib/mruby/core_ext.rb
@@ -20,6 +20,12 @@ class String
end
end
+def install_D(src, dst)
+ rm_f dst
+ mkdir_p File.dirname(dst)
+ cp src, dst
+end
+
def _pp(cmd, src, tgt=nil, options={})
return if Rake.verbose

Move global function for build to `lib/mruby/core_ext.rb`

Because `_pp` is originally defined in `lib/mruby/core_ext.rb`, other global
functions are moved to the file.