summaryrefslogtreecommitdiffhomepage
path: root/mrblib
diff options
context:
space:
mode:
authorKOBAYASHI Shuji <[email protected]>2019-12-27 16:49:32 +0900
committerKOBAYASHI Shuji <[email protected]>2019-12-27 16:49:32 +0900
commit26e6e75ba6a59bc77c80a6ce5d207626cfed91a6 (patch)
treedc77273f9040dfe78a90d7e00108549ef2fd7f08 /mrblib
parentef6805f599c19634809158da42ad7059ef0a9c5d (diff)
downloadmruby-26e6e75ba6a59bc77c80a6ce5d207626cfed91a6.tar.gz
mruby-26e6e75ba6a59bc77c80a6ce5d207626cfed91a6.zip
Use Rake DSL instead of commands of `FileUtils`
- Respect `--verbose(-v)` and `--dry-run(-n)` options. - Silence warnings to keyword arguments on Ruby 2.7.
Diffstat (limited to 'mrblib')
-rw-r--r--mrblib/mrblib.rake2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrblib/mrblib.rake b/mrblib/mrblib.rake
index e96decb27..6fba0adc1 100644
--- a/mrblib/mrblib.rake
+++ b/mrblib/mrblib.rake
@@ -8,7 +8,7 @@ MRuby.each_target do
file objfile("#{current_build_dir}/mrblib") => "#{current_build_dir}/mrblib.c"
file "#{current_build_dir}/mrblib.c" => [mrbcfile, __FILE__] + Dir.glob("#{current_dir}/*.rb").sort do |t|
_, _, *rbfiles = t.prerequisites
- FileUtils.mkdir_p File.dirname(t.name)
+ mkdir_p File.dirname(t.name)
open(t.name, 'w') do |f|
_pp "GEN", "*.rb", "#{t.name.relative_path}"
f.puts File.read("#{current_dir}/init_mrblib.c")