mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
make-snapshot: PATH_SEPARATOR
* tool/make-snapshot (package): now PATH_SEPARATOR is needed for id2token.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38127 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
0efa7abc40
commit
82b1bfe417
1 changed files with 5 additions and 2 deletions
|
@ -204,7 +204,10 @@ def package(rev, destdir)
|
|||
FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
|
||||
File.open("#{hdrdir}/config.h", "w") {}
|
||||
miniruby = ENV['MINIRUBY'] + " -r./cross"
|
||||
IO.popen("make -f - prereq srcdir=. CHDIR=cd IFCHANGE=tool/ifchange MAKEDIRS='mkdir -p' 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
|
||||
IO.popen("make -f - prereq"\
|
||||
" srcdir=. CHDIR=cd PATH_SEPARATOR='#{File::PATH_SEPARATOR}'"\
|
||||
" IFCHANGE=tool/ifchange MAKEDIRS='mkdir -p'"\
|
||||
" 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
|
||||
f.puts(IO.read("Makefile.in").gsub(/^@.*\n/, '').gsub(/@([A-Za-z_]\w*)@/) {ENV[$1]})
|
||||
f.puts(commonmk.gsub(/\{[^{}]*\}/, ""))
|
||||
end
|
||||
|
@ -254,7 +257,7 @@ revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
|
|||
sha = Digest::SHA256.hexdigest str
|
||||
puts "* #{name}"
|
||||
puts " SIZE: #{str.bytesize} bytes"
|
||||
puts " MD5: #{md5}"
|
||||
puts " MD5: #{md5}"
|
||||
puts " SHA256: #{sha}"
|
||||
puts
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue