ruby-changes:40358
From: nobu <ko1@a...>
Date: Wed, 4 Nov 2015 10:33:00 +0900 (JST)
Subject: [ruby-changes:40358] nobu:r52439 (trunk): fake.rb: fix builddir
nobu 2015-11-04 10:32:54 +0900 (Wed, 04 Nov 2015) New Revision: 52439 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=52439 Log: fake.rb: fix builddir * tool/fake.rb (prehook): consider the case building under the source directory. Modified files: trunk/tool/fake.rb Index: tool/fake.rb =================================================================== --- tool/fake.rb (revision 52438) +++ tool/fake.rb (revision 52439) @@ -41,7 +41,7 @@ prehook = proc do |extmk| https://github.com/ruby/ruby/blob/trunk/tool/fake.rb#L41 dir.shift pwd.shift end - builddir = File.join([".."]*pwd.size + dir) + builddir = File.join((pwd.empty? ? ["."] : [".."]*pwd.size) + dir) builddir = "." if builddir.empty? end join = proc {|*args| File.join(*args).sub!(/\A(?:\.\/)*/, '')} -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/