diff options
Diffstat (limited to 'template')
-rw-r--r-- | template/fake.rb.in | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in index 8b4e6e5aa3..6f5de5092f 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) |