summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-12 00:12:43 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-03-12 00:12:43 +0000
commitb9680c6dfb392087d611e270e892549a5cfaeda7 (patch)
treee4a50587941fde80212cdf80f3cbc372bcdf2597 /template
parent146a259568da5f56b3e9a7ee29451a98ab8b16b9 (diff)
fake.rb.in: expand srcdir
* template/fake.rb.in (top_srcdir): expand for the case @srcdir@ is not a relative path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49945 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 362893cc8a..e846d59f5c 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -22,7 +22,7 @@ class Object
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION}#{patchlevel_str} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
end
builddir = File.dirname(__FILE__)
-top_srcdir = File.join(builddir, "@srcdir@")
+top_srcdir = File.expand_path("@srcdir@", builddir)
$:.unshift(File.expand_path(builddir))
fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.read(fake), nil, fake)