Unverified Commit 4327f369 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto Committed by GitHub

Merge pull request #4912 from shuujii/avoid-unneeded-directory-creation-during-rake--T-etc

Avoid unneeded directory creation during `rake -T`, etc.
parents e9de5a7a b97ebf2a
...@@ -149,12 +149,7 @@ MRuby::Gem::Specification.new('mruby-test') do |spec| ...@@ -149,12 +149,7 @@ MRuby::Gem::Specification.new('mruby-test') do |spec|
# of the test gem depending on a change to the gem # of the test gem depending on a change to the gem
# selection # selection
active_gems_path = "#{build_dir}/active_gems_path.lst" active_gems_path = "#{build_dir}/active_gems_path.lst"
active_gem_list = if File.exist? active_gems_path active_gem_list = File.read active_gems_path if File.exist? active_gems_path
File.read active_gems_path
else
mkdir_p File.dirname(active_gems_path)
nil
end
current_gem_list = build.gems.map(&:name).join("\n") current_gem_list = build.gems.map(&:name).join("\n")
task active_gems_path do |_t| task active_gems_path do |_t|
mkdir_p File.dirname(active_gems_path) mkdir_p File.dirname(active_gems_path)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment