aboutsummaryrefslogtreecommitdiffstats
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 02:00:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-09-05 02:00:34 +0000
commit32c4fd7aa36b358bb132995f7a4dcfdc2d5508ea (patch)
treeec7e0065876c6ee6fc55d438537ff8e59ca7934b /tool
parent441de1b37611a6cba0baf386adb398ed544fd5e0 (diff)
downloadruby-32c4fd7aa36b358bb132995f7a4dcfdc2d5508ea.tar.gz
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
Diffstat (limited to 'tool')
-rw-r--r--tool/fake.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/fake.rb b/tool/fake.rb
index 06f730288a..298c2043a7 100644
--- a/tool/fake.rb
+++ b/tool/fake.rb
@@ -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)