summaryrefslogtreecommitdiff
path: root/template
diff options
context:
space:
mode:
Diffstat (limited to 'template')
-rw-r--r--template/fake.rb.in6
1 files changed, 1 insertions, 5 deletions
diff --git a/template/fake.rb.in b/template/fake.rb.in
index 8e461c57a4..0363b10e83 100644
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -19,11 +19,7 @@ class Object
RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]"
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
+top_srcdir = File.join(builddir, "@srcdir@")
$:.unshift(File.expand_path(builddir))
fake = File.join(top_srcdir, "tool/fake.rb")
eval(File.read(fake), nil, fake)