summaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-20 22:14:58 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-08-20 22:14:58 +0000
commitda564c0835e3b313336e6d4748d51d0d1337577f (patch)
tree4f649a8ee19edbfd86a66384a6cc400efa5c1e62 /template
parent0a8511d457d3bb9f16de5fe9f85b887326f4ea8d (diff)
downloadruby-da564c0835e3b313336e6d4748d51d0d1337577f.tar.gz
ruby-da564c0835e3b313336e6d4748d51d0d1337577f.tar.xz
ruby-da564c0835e3b313336e6d4748d51d0d1337577f.zip
* configure.in (RUBY_PROGRAM_VERSION, RUBY_RELEASE_DATE): extracts
from version.h for cross-compiling. * template/fake.rb.in (RUBY_VERSION, RUBY_DESCRIPTION): use above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@24602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in4
1 files changed, 2 insertions, 2 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index ed9416a16..e8eba0928 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -4,8 +4,8 @@ class Object
remove_const :RUBY_VERSION
remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
RUBY_PLATFORM = "@arch@"
- RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"
- RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{Time.now.strftime("%Y-%m-%d")}) [#{RUBY_PLATFORM}]"
+ RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
+ RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (@RUBY_RELEASE_DATE@) [#{RUBY_PLATFORM}]"
end
if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
class File