summaryrefslogtreecommitdiffhomepage
path: root/Rakefile
diff options
context:
space:
mode:
authorJulian Aron Prenner <[email protected]>2015-01-02 14:47:57 +0100
committerJulian Aron Prenner <[email protected]>2015-01-02 14:47:57 +0100
commit1aef549971f79709b3d100832b1ea846a0dee9e3 (patch)
tree1e3e77b346e6ccb51daf3695c86d00b94c911a27 /Rakefile
parent7d4b516ca3fcdbda14ad7cb665c3d81b68ff28b8 (diff)
downloadmruby-1aef549971f79709b3d100832b1ea846a0dee9e3.tar.gz
mruby-1aef549971f79709b3d100832b1ea846a0dee9e3.zip
Set correct build dir for bins
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index cc6ded8d0..fee43217c 100644
--- a/Rakefile
+++ b/Rakefile
@@ -52,7 +52,11 @@ MRuby.each_target do |target|
gems.map do |gem|
current_dir = gem.dir.relative_path_from(Dir.pwd)
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|
exec = exefile("#{build_dir}/bin/#{bin}")