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

ruby-changes:33083

From: naruse <ko1@a...>
Date: Mon, 24 Feb 2014 15:05:06 +0900 (JST)
Subject: [ruby-changes:33083] naruse:r45162 (ruby_2_1): merge revision(s) 44425, 44460: [Backport #9320]

naruse	2014-02-24 15:04:59 +0900 (Mon, 24 Feb 2014)

  New Revision: 45162

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

  Log:
    merge revision(s) 44425,44460: [Backport #9320]
    
    * tool/make-snapshot: support new version scheme.
    
    * tool/make-snapshot: needs CXXFLAGS.  [ruby-core:59393][Bug #9320]

  Modified directories:
    branches/ruby_2_1/
  Modified files:
    branches/ruby_2_1/ChangeLog
    branches/ruby_2_1/tool/make-snapshot
    branches/ruby_2_1/version.h
Index: ruby_2_1/ChangeLog
===================================================================
--- ruby_2_1/ChangeLog	(revision 45161)
+++ ruby_2_1/ChangeLog	(revision 45162)
@@ -1,3 +1,11 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/ChangeLog#L1
+Mon Feb 24 14:56:41 2014  WATANABE Hirofumi  <eban@r...>
+
+	* tool/make-snapshot: needs CXXFLAGS.  [ruby-core:59393][Bug #9320]
+
+Mon Feb 24 14:56:41 2014  NAKAMURA Usaku  <usa@r...>
+
+	* tool/make-snapshot: support new version scheme.
+
 Mon Feb 24 13:05:48 2014  Aaron Patterson <aaron@t...>
 
 	* ext/psych/lib/psych.rb: New release of psych.
Index: ruby_2_1/version.h
===================================================================
--- ruby_2_1/version.h	(revision 45161)
+++ ruby_2_1/version.h	(revision 45162)
@@ -1,6 +1,6 @@ https://github.com/ruby/ruby/blob/trunk/ruby_2_1/version.h#L1
 #define RUBY_VERSION "2.1.1"
 #define RUBY_RELEASE_DATE "2014-02-24"
-#define RUBY_PATCHLEVEL 76
+#define RUBY_PATCHLEVEL 77
 
 #define RUBY_RELEASE_YEAR 2014
 #define RUBY_RELEASE_MONTH 2
Index: ruby_2_1/tool/make-snapshot
===================================================================
--- ruby_2_1/tool/make-snapshot	(revision 45161)
+++ ruby_2_1/tool/make-snapshot	(revision 45162)
@@ -116,8 +116,14 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/ruby_2_1/tool/make-snapshot#L116
     patchlevel = true
     tag = "p#{$4}"
     url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}_#{$4}"
-  when /\./
-    url = SVNURL + "branches/ruby_#{rev.tr('.', '_')}"
+  when /\A(\d+)\.(\d+)\.(\d+)\z/
+    if $1 > "2" || $1 == "2" && $2 >= "1"
+      patchlevel = true
+      tag = ""
+      url = SVNURL + "tags/v#{$1}_#{$2}_#{$3}"
+    else
+      url = SVNURL + "branches/ruby_#{rev.tr('.', '_')}"
+    end
   else
     warn "#{$0}: unknown version - #{rev}"
     return
@@ -160,14 +166,20 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/ruby_2_1/tool/make-snapshot#L166
   version ||= (versionhdr = IO.read("#{v}/version.h"))[RUBY_VERSION_PATTERN, 1]
   version or return
   if patchlevel
-    versionhdr ||= IO.read("#{v}/version.h")
-    patchlevel = versionhdr[/^\#define\s+RUBY_PATCHLEVEL\s+(\d+)/, 1]
-    tag = (patchlevel ? "p#{patchlevel}" : "r#{revision}")
+    unless tag.empty?
+      versionhdr ||= IO.read("#{v}/version.h")
+      patchlevel = versionhdr[/^\#define\s+RUBY_PATCHLEVEL\s+(\d+)/, 1]
+      tag = (patchlevel ? "p#{patchlevel}" : "r#{revision}")
+    end
   else
     tag ||= "r#{revision}"
   end
   unless v == $exported
-    n = "ruby-#{version}-#{tag}"
+    if tag.empty?
+      n = "ruby-#{version}"
+    else
+      n = "ruby-#{version}-#{tag}"
+    end
     File.directory?(n) or File.rename v, n
     v = n
   end
@@ -177,7 +189,11 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/ruby_2_1/tool/make-snapshot#L189
   Dir.chdir(v) do
     %w[config.guess config.sub].each do |conf|
       next if File.exist?("tool/#{conf}")
-      require File.expand_path("config_files", $tooldir)
+      begin
+        require File.expand_path("config_files", $tooldir)
+      rescue LoadError
+        abort "Error!!! Copy 'config_files.rb' from 'tool' directory of the recent ruby repository!"
+      end
       ConfigFiles.download(conf, "tool")
     end
     File.open(clean.add("cross.rb"), "w") do |f|
@@ -205,6 +221,7 @@ def package(rev, destdir) https://github.com/ruby/ruby/blob/trunk/ruby_2_1/tool/make-snapshot#L221
         f.puts "s,@ARCH_FLAG@,|#_!!_#|,g"
         f.puts "s,@CFLAGS@,|#_!!_#|,g"
         f.puts "s,@CPPFLAGS@,|#_!!_#|,g"
+        f.puts "s,@CXXFLAGS@,|#_!!_#|,g"
         f.puts "s,@LDFLAGS@,|#_!!_#|,g"
         f.puts "s,@DLDFLAGS@,|#_!!_#|,g"
         f.puts "s,@LIBEXT@,|#_!!_#|a,g"

Property changes on: ruby_2_1
___________________________________________________________________
Modified: svn:mergeinfo
   Merged /trunk:r44425,44460


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

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