2010-04-05 22:21:40 -04:00
|
|
|
baseruby="@BASERUBY@"
|
|
|
|
ruby="${RUBY-$baseruby}"
|
2011-01-22 20:32:57 -05:00
|
|
|
"eval" "{" \
|
|
|
|
"`expr \"$ruby\" : echo > /dev/null || echo exec`" \
|
|
|
|
"$ruby" '-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' \
|
|
|
|
"}" || "exit" "$?"
|
|
|
|
ruby=ruby
|
2009-02-19 01:47:13 -05:00
|
|
|
class Object
|
2011-02-10 21:39:05 -05:00
|
|
|
remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING)
|
2009-02-19 01:47:13 -05:00
|
|
|
CROSS_COMPILING = RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_PLATFORM
|
|
|
|
remove_const :RUBY_VERSION
|
2014-07-06 01:20:10 -04:00
|
|
|
remove_const :RUBY_RELEASE_DATE
|
2009-02-19 01:47:13 -05:00
|
|
|
remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
|
|
|
|
RUBY_PLATFORM = "@arch@"
|
2009-08-20 18:14:58 -04:00
|
|
|
RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
|
2014-07-06 01:20:10 -04:00
|
|
|
RUBY_RELEASE_DATE = "@RUBY_RELEASE_DATE@"
|
|
|
|
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
2009-02-19 01:47:13 -05:00
|
|
|
end
|
2014-07-06 01:20:10 -04:00
|
|
|
builddir = File.dirname(__FILE__)
|
2014-08-26 00:51:19 -04:00
|
|
|
top_srcdir = File.expand_path("@srcdir@", builddir)
|
2014-07-06 01:20:10 -04:00
|
|
|
$:.unshift(File.expand_path(builddir))
|
|
|
|
fake = File.join(top_srcdir, "tool/fake.rb")
|
|
|
|
eval(File.read(fake), nil, fake)
|