From f32e38a951e7fc8b6088e107cb503dca8fa14eb2 Mon Sep 17 00:00:00 2001 From: nobu Date: Tue, 9 Sep 2014 00:31:21 +0000 Subject: fake.rb.in: use absolute path * template/fake.rb.in (top_srcdir): use absolute path to resolve symbolic links in srcdir. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- template/fake.rb.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'template/fake.rb.in') diff --git a/template/fake.rb.in b/template/fake.rb.in index 0b454f1e3e..8b4e6e5aa3 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.expand_path("@srcdir@", builddir) +top_srcdir = "@abs_top_srcdir@" $:.unshift(File.expand_path(builddir)) fake = File.join(top_srcdir, "tool/fake.rb") eval(File.read(fake), nil, fake) -- cgit v1.2.3