1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fake.rb: fix builddir

* tool/fake.rb: builddir should be "." if it is the current
  working directory.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2015-09-05 02:00:34 +00:00
parent 441de1b376
commit 32c4fd7aa3

View file

@ -42,6 +42,7 @@ prehook = proc do |extmk|
pwd.shift
end
builddir = File.join([".."]*pwd.size + dir)
builddir = "." if builddir.empty?
end
$topdir ||= builddir
$top_srcdir ||= File.join($topdir, srcdir)