mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
fake.rb.in: fix make install failure
* template/fake.rb.in: fix make install failure due to MSYS path with mingw on MSYS environment. [ruby-core:64965] [Bug #10230] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47774 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5207d9f158
commit
438fb66969
2 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,9 @@
|
|||
Fri Oct 3 23:22:23 2014 Hiroshi Shirosaki <h.shirosaki@gmail.com>
|
||||
|
||||
* template/fake.rb.in: fix make install failure due to MSYS path
|
||||
with mingw on MSYS environment.
|
||||
[ruby-core:64965] [Bug #10230]
|
||||
|
||||
Fri Oct 3 21:02:32 2014 SHIBATA Hiroshi <shibata.hiroshi@gmail.com>
|
||||
|
||||
* test/ruby/test_io.rb (TestIO#test_advise): avoid to infinite loop.
|
||||
|
|
|
@ -19,6 +19,10 @@ class Object
|
|||
end
|
||||
builddir = File.dirname(__FILE__)
|
||||
top_srcdir = "@abs_top_srcdir@"
|
||||
if /mingw/ =~ RUBY_PLATFORM
|
||||
# convert MSYS path to Windows path
|
||||
top_srcdir.sub!(/\A\/([a-z])\//, '\\1:/')
|
||||
end
|
||||
$:.unshift(File.expand_path(builddir))
|
||||
fake = File.join(top_srcdir, "tool/fake.rb")
|
||||
eval(File.read(fake), nil, fake)
|
||||
|
|
Loading…
Reference in a new issue