summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-07 02:06:28 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-07 02:06:28 (GMT)
commit0581320a59b65ef826116cbc637b0e5eb02ce525 (patch)
tree0dbc00fd3df04ed31fed9ccbd89d762273b63cb0 /template
parentcdcae92de95d553f164351503fbba5488da5c86b (diff)
fake.rb.in: RUBY_PATCHLEVEL
* template/fake.rb.in: add RUBY_PATCHLEVEL and include it in RUBY_DESCRIPTION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49885 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in5
1 files changed, 4 insertions, 1 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 0363b10..362893c 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -11,12 +11,15 @@ class Object
CROSS_COMPILING = RUBY_PLATFORM
remove_const :RUBY_PLATFORM
remove_const :RUBY_VERSION
+ remove_const :RUBY_PATCHLEVEL
remove_const :RUBY_RELEASE_DATE
remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
RUBY_PLATFORM = "@arch@"
RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
+ RUBY_PATCHLEVEL = @PATCHLEVEL@
RUBY_RELEASE_DATE = "@RUBY_RELEASE_DATE@"
- RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
+ patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
+ RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
builddir = File.dirname(__FILE__)
top_srcdir = File.join(builddir, "@srcdir@")