[前][次][番号順一覧][スレッド一覧]

ruby-changes:37805

From: nobu <ko1@a...>
Date: Sat, 7 Mar 2015 20:55:17 +0900 (JST)
Subject: [ruby-changes:37805] nobu:r49886 (trunk): make-snapshot: follow previous commits

nobu	2015-03-07 20:54:58 +0900 (Sat, 07 Mar 2015)

  New Revision: 49886

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49886

  Log:
    make-snapshot: follow previous commits
    
    * tool/make-snapshot (package): set @ruby_version@ and
      BOOTSTRAPRUBY.

  Modified files:
    trunk/tool/make-snapshot
Index: tool/make-snapshot
===================================================================
--- tool/make-snapshot	(revision 49885)
+++ tool/make-snapshot	(revision 49886)
@@ -279,7 +279,7 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L279
         f.puts "s,@CP@,|#_!!_#|cp,g"
         f.puts "s,@rubyarchdir@,|#_!!_#|,g"
         f.puts "s,@rubylibprefix@,|#_!!_#|,g"
-        f.puts "s,@ruby_version@,|#_!!_#|,g"
+        f.puts "s,@ruby_version@,|#_!!_#|#{version},g"
       }
       FileUtils.mkpath(hdrdir = "#{extout}/include/ruby")
       File.open("#{hdrdir}/config.h", "w") {}
@@ -287,6 +287,7 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L287
       File.open("#{defaults}/operating_system.rb", "w") {}
       File.open("#{defaults}/ruby.rb", "w") {}
       miniruby = ENV['MINIRUBY'] + " -I. -I#{extout} -rcross"
+      baseruby = ENV["BASERUBY"]
       mk = IO.read("Makefile.in").gsub(/^@.*\n/, '').gsub(/@([A-Za-z_]\w*)@/) {ENV[$1]}
       mk << commonmk.gsub(/(?<!#)\{[^{}]*\}/, "")
       cmd = %W[make -f -
@@ -298,7 +299,8 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L299
                RUNRUBY=#{miniruby}
                RUBY=#{ENV["RUBY"]}
                HAVE_BASERUBY=yes
-               BASERUBY=#{ENV["BASERUBY"]}
+               BASERUBY=#{baseruby}
+               BOOTSTRAPRUBY=#{baseruby}
                PWD=#{Dir.pwd}
                prereq]
       IO.popen(cmd, "w") do |f|
@@ -312,7 +314,7 @@ def package(vcs, rev, destdir, tmp = nil https://github.com/ruby/ruby/blob/trunk/tool/make-snapshot#L314
       system(*%W"#{YACC} -o parse.c parse.y")
     end
     vcs.after_export(".") if exported
-    FileUtils.rm_rf(clean)
+    FileUtils.rm_rf(clean) unless $keep_temp
     FileUtils.rm_rf(".downloaded-cache")
     if File.exist?("gems/bundled_gems")
       gems = Dir.glob("gems/*.gem")

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]