summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-12 23:25:21 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-04-12 23:25:21 (GMT)
commit2ec2c601a89bc3322ff0130dd90843a6db3157ed (patch)
treebf8274fcde974e867d500c5db0d0061d0cb3cf16 /template
parentc2d50318a1e522b5d51159e660ff3a53240de859 (diff)
fake.rb.in: expand builddir first
* template/fake.rb.in (builddir): expand __FILE__ first which may contain symblic links. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50279 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 01b0bdb..e959626 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -21,9 +21,9 @@ class Object
patchlevel_str = RUBY_PATCHLEVEL == -1 ? "dev" : "p#{RUBY_PATCHLEVEL}"
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
-builddir = File.dirname(__FILE__)
+builddir = File.dirname(File.expand_path(__FILE__))
top_srcdir = File.expand_path("@srcdir@", builddir)
-$:.unshift(File.expand_path(builddir))
+$:.unshift(builddir)
fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.read(fake), nil, fake)
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")