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:
parent
441de1b376
commit
32c4fd7aa3
1 changed files with 1 additions and 0 deletions
|
@ -42,6 +42,7 @@ prehook = proc do |extmk|
|
||||||
pwd.shift
|
pwd.shift
|
||||||
end
|
end
|
||||||
builddir = File.join([".."]*pwd.size + dir)
|
builddir = File.join([".."]*pwd.size + dir)
|
||||||
|
builddir = "." if builddir.empty?
|
||||||
end
|
end
|
||||||
$topdir ||= builddir
|
$topdir ||= builddir
|
||||||
$top_srcdir ||= File.join($topdir, srcdir)
|
$top_srcdir ||= File.join($topdir, srcdir)
|
||||||
|
|
Loading…
Add table
Reference in a new issue