aboutsummaryrefslogtreecommitdiffstats
path: root/tool/fake.rb
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
commit6388298bc7baaec125f7c2c2d773498fd375f5f5 (patch)
treeec7e0065876c6ee6fc55d438537ff8e59ca7934b /tool/fake.rb
parent4934651e3ff1cfebc347081e6f9f833728a011a9 (diff)
downloadruby-6388298bc7baaec125f7c2c2d773498fd375f5f5.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/fake.rb')
-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)