aboutsummaryrefslogtreecommitdiffstats
path: root/template
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-04 10:06:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-04 10:06:49 +0000
commit6f72a2b13988aa2f8d451f1e052d4efb3a9cdc76 (patch)
treee90a48545bed12e03267edf46b32344c08f1d566 /template
parentce7b4024cbcd45a5e5b1e3b079c7d097efd13e91 (diff)
downloadruby-6f72a2b13988aa2f8d451f1e052d4efb3a9cdc76.tar.gz
fake.rb: extmk mode
* tool/fake.rb: add extmk mode. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51759 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 f2cc7c65b6..325fa88e3c 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -32,8 +32,8 @@ class Object
% }
end
builddir = File.dirname(File.expand_path(__FILE__))
-top_srcdir = File.expand_path("<%=arg['srcdir']%>", builddir)
-$:.unshift(builddir)
+srcdir = "<%=arg['srcdir']%>"
+top_srcdir = File.realpath(srcdir, builddir)
fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.read(fake), nil, fake)
ENV["RUBYOPT"] = ["-r#{__FILE__}", ENV["RUBYOPT"]].compact.join(" ")