Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 82b1bfe417120de96737de88f406e1b877cef5f7 1 parent 0efa7ab
Nobuyoshi Nakada nobu authored

Showing 1 changed file with 5 additions and 2 deletions. Show diff stats Hide diff stats

  1. +5 2 tool/make-snapshot
7 tool/make-snapshot
@@ -204,7 +204,10 @@ def package(rev, destdir)
204 204 FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
205 205 File.open("#{hdrdir}/config.h", "w") {}
206 206 miniruby = ENV['MINIRUBY'] + " -r./cross"
207   - IO.popen("make -f - prereq srcdir=. CHDIR=cd IFCHANGE=tool/ifchange MAKEDIRS='mkdir -p' 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
  207 + IO.popen("make -f - prereq"\
  208 + " srcdir=. CHDIR=cd PATH_SEPARATOR='#{File::PATH_SEPARATOR}'"\
  209 + " IFCHANGE=tool/ifchange MAKEDIRS='mkdir -p'"\
  210 + " 'MINIRUBY=#{miniruby}' 'RUBY=#{ENV["RUBY"]}'", "w") do |f|
208 211 f.puts(IO.read("Makefile.in").gsub(/^@.*\n/, '').gsub(/@([A-Za-z_]\w*)@/) {ENV[$1]})
209 212 f.puts(commonmk.gsub(/\{[^{}]*\}/, ""))
210 213 end
@@ -254,7 +257,7 @@ revisions.collect {|rev| package(rev, destdir)}.flatten.each do |name|
254 257 sha = Digest::SHA256.hexdigest str
255 258 puts "* #{name}"
256 259 puts " SIZE: #{str.bytesize} bytes"
257   - puts " MD5: #{md5}"
  260 + puts " MD5: #{md5}"
258 261 puts " SHA256: #{sha}"
259 262 puts
260 263 end

0 comments on commit 82b1bfe

Please sign in to comment.
Something went wrong with that request. Please try again.