diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-04 10:06:49 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-09-04 10:06:49 +0000 |
commit | 8a77feb9ca5a537775ba4e6a574fc87c2a6c6225 (patch) | |
tree | e90a48545bed12e03267edf46b32344c08f1d566 /template/fake.rb.in | |
parent | 303c5a370ed1bea8a3045b33f9c03e992badb9b0 (diff) |
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/fake.rb.in')
-rw-r--r-- | template/fake.rb.in | 4 |
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(" ") |