Commit 3dea1088 authored by Yukihiro "Matz" Matsumoto's avatar Yukihiro "Matz" Matsumoto

Merge pull request #2690 from furunkel/master

Set correct build dir for bins
parents 7d4b516c 1aef5499
...@@ -52,7 +52,11 @@ MRuby.each_target do |target| ...@@ -52,7 +52,11 @@ MRuby.each_target do |target|
gems.map do |gem| gems.map do |gem|
current_dir = gem.dir.relative_path_from(Dir.pwd) current_dir = gem.dir.relative_path_from(Dir.pwd)
relative_from_root = gem.dir.relative_path_from(MRUBY_ROOT) relative_from_root = gem.dir.relative_path_from(MRUBY_ROOT)
current_build_dir = "#{build_dir}/#{relative_from_root}" current_build_dir = File.expand_path "#{build_dir}/#{relative_from_root}"
if current_build_dir !~ /^#{build_dir}/
current_build_dir = "#{build_dir}/mrbgems/#{gem.name}"
end
gem.bins.each do |bin| gem.bins.each do |bin|
exec = exefile("#{build_dir}/bin/#{bin}") exec = exefile("#{build_dir}/bin/#{bin}")
......
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