diff options
author | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-11 15:06:41 +0000 |
---|---|---|
committer | yugui <yugui@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-05-11 15:06:41 +0000 |
commit | 0f7eaa8c1025239ea2edba3452815a7d9d843d8c (patch) | |
tree | 8f474c452875b9af03ead334b7e96259015dae36 /template | |
parent | 4c9c86a2aeb38917593359b0ee9e9b6123270809 (diff) | |
download | ruby-0f7eaa8c1025239ea2edba3452815a7d9d843d8c.tar.gz ruby-0f7eaa8c1025239ea2edba3452815a7d9d843d8c.tar.xz ruby-0f7eaa8c1025239ea2edba3452815a7d9d843d8c.zip |
merges r22441 from trunk into ruby_1_9_1.
--
* template/fake.rb.in: extracted from Makefile.in.
* configure.in (fake.rb): prefixed with $(arch)-.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_9_1@23402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r-- | template/fake.rb.in | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in new file mode 100644 index 000000000..ed9416a16 --- /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 |