summaryrefslogtreecommitdiff
path: root/template/fake.rb.in
diff options
context:
space:
mode:
authorshirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 14:27:31 (GMT)
committershirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-10-03 14:27:31 (GMT)
commit438fb66969ccecfbfe838c6a4a3a4ad3d7be1db0 (patch)
tree288febf789f02e42a6e24b347053e910f9c86ab8 /template/fake.rb.in
parent5207d9f158485d6f4b96477b4d08c15eaded93c4 (diff)
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
Diffstat (limited to 'template/fake.rb.in')
-rw-r--r--template/fake.rb.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 8b4e6e5..6f5de50 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -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)