Skip to content

Commit

Permalink
fake.rb.in: expand srcdir
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
nobu committed Mar 12, 2015
1 parent 146a259 commit b9680c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/fake.rb.in
Expand Up @@ -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)
Expand Down

0 comments on commit b9680c6

Please sign in to comment.