2 # scripts/Makefiles can read and eval the output of this script and
6 fp
= File
.open(__FILE__
, "rb")
7 fp
.flock(File
::LOCK_EX)
9 ruby_engine
= defined?(RUBY_ENGINE
) ? RUBY_ENGINE
: 'ruby'
12 # we want "ruby-1.8.7" and not "ruby-1.8", so disable :multiruby
14 :path => "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}",
19 gem
'raindrops', '0.8.0'
20 gem
'kgio-monkey', '0.4.0'
25 _
, status
= Process
.waitpid2(pid
)
26 status
.success
? or abort status
.inspect
27 lib_paths
= Dir
["#{opts[:path]}/gems/*-*/lib"].map
{ |x
| File
.expand_path(x
) }
28 dst
= "tmp/isolate/#{ruby_engine}-#{RUBY_VERSION}.mk"
29 File
.open("#{dst}.#$$", "w") do |fp
|
30 fp
.puts
"ISOLATE_LIBS=#{lib_paths.join(':')}"
32 File
.rename("#{dst}.#$$", dst
)