diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2019-12-27 18:35:19 +0900 |
|---|---|---|
| committer | GitHub <[email protected]> | 2019-12-27 18:35:19 +0900 |
| commit | d2f34a845514d45e9651a87d445e2d1bdabe680a (patch) | |
| tree | 71e9536f151dc2e6303948a13d5d72b067406d19 /Rakefile | |
| parent | 03244b52a0624e823ae5e338ecf72a868da08ef2 (diff) | |
| parent | 26e6e75ba6a59bc77c80a6ce5d207626cfed91a6 (diff) | |
| download | mruby-d2f34a845514d45e9651a87d445e2d1bdabe680a.tar.gz mruby-d2f34a845514d45e9651a87d445e2d1bdabe680a.zip | |
Merge pull request #4910 from shuujii/use-Rake-DSL-instead-of-commands-of-FileUtils
Use Rake DSL instead of commands of `FileUtils`
Diffstat (limited to 'Rakefile')
| -rw-r--r-- | Rakefile | 13 |
1 files changed, 6 insertions, 7 deletions
@@ -35,10 +35,9 @@ load "#{MRUBY_ROOT}/tasks/gitlab.rake" load "#{MRUBY_ROOT}/tasks/doc.rake" def install_D(src, dst) - opts = { :verbose => $verbose } - FileUtils.rm_f dst, opts - FileUtils.mkdir_p File.dirname(dst), opts - FileUtils.cp src, dst, opts + rm_f dst + mkdir_p File.dirname(dst) + cp src, dst end ############################## @@ -146,16 +145,16 @@ end desc "clean all built and in-repo installed artifacts" task :clean do MRuby.each_target do |t| - FileUtils.rm_rf t.build_dir, { :verbose => $verbose } + rm_rf t.build_dir end - FileUtils.rm_f depfiles, { :verbose => $verbose } + rm_f depfiles puts "Cleaned up target build folder" end desc "clean everything!" task :deep_clean => ["clean", "clean_doc"] do MRuby.each_target do |t| - FileUtils.rm_rf t.gem_clone_dir, { :verbose => $verbose } + rm_rf t.gem_clone_dir end puts "Cleaned up mrbgems build folder" end |
