diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-10-08 08:49:22 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-10-08 08:49:22 +0000 |
commit | f20274e84169e18a73a5cd341b6bc31b625b83ce (patch) | |
tree | 93a251160bcdde87fce225e4709842e69f97ac6f /script/isolate_for_tests | |
parent | 861481436b933bf4b8d647c43191c701651f16e4 (diff) | |
download | unicorn-f20274e84169e18a73a5cd341b6bc31b625b83ce.tar.gz |
Automation is nice, the makefile needs some cleanup
Diffstat (limited to 'script/isolate_for_tests')
-rwxr-xr-x | script/isolate_for_tests | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/script/isolate_for_tests b/script/isolate_for_tests index 7542557..ca63208 100755 --- a/script/isolate_for_tests +++ b/script/isolate_for_tests @@ -24,9 +24,11 @@ end _, status = Process.waitpid2(pid) status.success? or abort status.inspect lib_paths = Dir["#{opts[:path]}/gems/*-*/lib"].map { |x| File.expand_path(x) } -libs = "tmp/isolate/.#{ruby_engine}-#{RUBY_VERSION}.libs" -File.open("#{libs}.#$$", "w") { |fp| fp.puts lib_paths.join(':') } -File.rename("#{libs}.#$$", libs) +dst = "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}.mk" +File.open("#{dst}.#$$", "w") do |fp| + fp.puts "ISOLATE_LIBS=#{lib_paths.join(':')}" +end +File.rename("#{dst}.#$$", dst) # pure Ruby gems can be shared across all Rubies %w(3.0.0).each do |rails_ver| |