summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-26 04:51:19 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-08-26 04:51:19 +0000
commiteec0176d149576bfc8dc90bedf502013752977b2 (patch)
tree84fd72f96b31558b1fdbfdf07eaeb16f2e44880a /template
parent949634f51ae1b20779e3ee578b17c8b9442951ef (diff)
* template/fake.rb.in: fix failed to make install when srcdir != builddir.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47287 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 e468335..0b454f1 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -18,7 +18,7 @@ class Object
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{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)