ruby-changes:17892
From: shyouhei <ko1@a...>
Date: Wed, 24 Nov 2010 16:38:56 +0900 (JST)
Subject: [ruby-changes:17892] Ruby:r29908 (ruby_1_8_7): merge revision(s) 22932:
shyouhei 2010-11-24 16:38:41 +0900 (Wed, 24 Nov 2010) New Revision: 29908 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29908 Log: merge revision(s) 22932: * mkconfig.rb (patchlevel): config.status may not contain PATCHLEVEL even if other version numbers exist. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@22932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e Signed-off-by: URABE, Shyouhei <shyouhei@r...> Modified files: branches/ruby_1_8_7/ChangeLog branches/ruby_1_8_7/mkconfig.rb branches/ruby_1_8_7/version.h Index: ruby_1_8_7/ChangeLog =================================================================== --- ruby_1_8_7/ChangeLog (revision 29907) +++ ruby_1_8_7/ChangeLog (revision 29908) @@ -1,3 +1,8 @@ +Wed Nov 24 16:24:24 2010 Nobuyoshi Nakada <nobu@r...> + + * mkconfig.rb (patchlevel): config.status may not contain + PATCHLEVEL even if other version numbers exist. + Wed Nov 24 16:18:02 2010 URABE Shyouhei <shyouhei@r...> * win32/Makefile.sub ($(RCFILES)): no revision.h in this Index: ruby_1_8_7/mkconfig.rb =================================================================== --- ruby_1_8_7/mkconfig.rb (revision 29907) +++ ruby_1_8_7/mkconfig.rb (revision 29908) @@ -37,6 +37,7 @@ v_others = [] vars = {} has_version = false +has_patchlevel = false continued_name = nil continued_line = nil File.foreach "config.status" do |line| @@ -95,7 +96,12 @@ else v_others << v end - has_version = true if name == "MAJOR" + case name + when "MAJOR" + has_version = true + when "PATCHLEVEL" + has_patchlevel = true + end end # break if /^CEOF/ end @@ -114,6 +120,8 @@ print " CONFIG[\"MINOR\"] = \"" + $2 + "\"\n" print " CONFIG[\"TEENY\"] = \"" + $3 + "\"\n" } +end +unless has_patchlevel patchlevel = IO.foreach(File.join(srcdir, "version.h")) {|l| m = /^\s*#\s*define\s+RUBY_PATCHLEVEL\s+(\d+)/.match(l) and break m[1] } Index: ruby_1_8_7/version.h =================================================================== --- ruby_1_8_7/version.h (revision 29907) +++ ruby_1_8_7/version.h (revision 29908) @@ -2,7 +2,7 @@ #define RUBY_RELEASE_DATE "2010-11-24" #define RUBY_VERSION_CODE 187 #define RUBY_RELEASE_CODE 20101124 -#define RUBY_PATCHLEVEL 324 +#define RUBY_PATCHLEVEL 325 #define RUBY_VERSION_MAJOR 1 #define RUBY_VERSION_MINOR 8 -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/