2010-04-05 22:21:40 -04:00
|
|
|
baseruby="@BASERUBY@"
|
|
|
|
ruby="${RUBY-$baseruby}"
|
2015-04-12 19:24:33 -04:00
|
|
|
_=
|
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" "$?"
|
2015-04-13 03:40:28 -04:00
|
|
|
_=baseruby
|
2011-01-22 20:32:57 -05:00
|
|
|
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
|
2015-03-06 21:06:28 -05:00
|
|
|
remove_const :RUBY_PATCHLEVEL
|
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@"
|
2015-03-06 21:06:28 -05:00
|
|
|
RUBY_PATCHLEVEL = @PATCHLEVEL@
|
2014-07-06 01:20:10 -04:00
|
|
|
RUBY_RELEASE_DATE = "@RUBY_RELEASE_DATE@"
|
2015-03-06 21:06:28 -05:00
|
|
|
patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
|
|
|
|
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
|
2009-02-19 01:47:13 -05:00
|
|
|
end
|
2015-04-12 19:25:21 -04:00
|
|
|
builddir = File.dirname(File.expand_path(__FILE__))
|
2015-03-11 20:12:43 -04:00
|
|
|
top_srcdir = File.expand_path("@srcdir@", builddir)
|
2015-04-12 19:25:21 -04:00
|
|
|
$:.unshift(builddir)
|
2014-07-06 01:20:10 -04:00
|
|
|
fake = File.join(top_srcdir, "tool/fake.rb")
|
|
|
|
eval(File.read(fake), nil, fake)
|
2015-02-25 12:19:57 -05:00
|
|
|
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")
|