summaryrefslogtreecommitdiff
path: root/template/fake.rb.in
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:47:13 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-02-19 06:47:13 +0000
commit7c7690045870396816624bf57775eb29e6a478fd (patch)
treecef668c8cf7931b051f9bafd902e9bc8c7fd1ae2 /template/fake.rb.in
parent3e1394f36fd39da810ebd807d5346ddd0c0f3b5b (diff)
* template/fake.rb.in: extracted from Makefile.in.
* configure.in (fake.rb): prefixed with $(arch)-. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template/fake.rb.in')
-rw-r--r--template/fake.rb.in15
1 files changed, 15 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
new file mode 100644
index 0000000..ed9416a
--- /dev/null
+++ b/template/fake.rb.in
@@ -0,0 +1,15 @@
+class Object
+ CROSS_COMPILING = RUBY_PLATFORM
+ remove_const :RUBY_PLATFORM
+ 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}]"
+end
+if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
+ class File
+ remove_const :ALT_SEPARATOR
+ ALT_SEPARATOR = "\\"
+ end
+end