Skip to content

Commit

Permalink
merge revision(s) 22932:
Browse files Browse the repository at this point in the history

	* 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@ruby-lang.org>



git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@29908 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
  • Loading branch information
shyouhei committed Nov 24, 2010
1 parent 578a6fd commit 21a268e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
5 changes: 5 additions & 0 deletions ChangeLog
@@ -1,3 +1,8 @@
Wed Nov 24 16:24:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>

* 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@ruby-lang.org>

* win32/Makefile.sub ($(RCFILES)): no revision.h in this
Expand Down
10 changes: 9 additions & 1 deletion mkconfig.rb
Expand Up @@ -37,6 +37,7 @@ module Config
v_others = []
vars = {}
has_version = false
has_patchlevel = false
continued_name = nil
continued_line = nil
File.foreach "config.status" do |line|
Expand Down Expand Up @@ -95,7 +96,12 @@ module Config
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
Expand All @@ -114,6 +120,8 @@ module Config
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]
}
Expand Down
2 changes: 1 addition & 1 deletion version.h
Expand Up @@ -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
Expand Down

0 comments on commit 21a268e

Please sign in to comment.