summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 08:39:26 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-22 08:39:26 +0000
commit5d2653e5c0693aa7cf7b17bbf48359a35ce10e55 (patch)
treeaaed876fb1179a9ca090a0cc7447b6bf37f04759 /lib
parent81aeb1bf3d59a962a3fd7727e931f8842ded8c9f (diff)
downloadruby-5d2653e5c0693aa7cf7b17bbf48359a35ce10e55.tar.gz
ruby-5d2653e5c0693aa7cf7b17bbf48359a35ce10e55.tar.xz
ruby-5d2653e5c0693aa7cf7b17bbf48359a35ce10e55.zip
* lib/mkmf.rb ($extmk): fixed broken condition.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14483 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/mkmf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 7cd62e505..d93826cce 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -146,7 +146,7 @@ end
topdir = File.dirname(libdir = File.dirname(__FILE__))
extdir = File.expand_path("ext", topdir)
path = File.expand_path($0)
-$extmk = path[0, topdir.size+1] == topdir+"/" && %r"(ext|enc|tool)/" =~ path[topdir.size+1..-1]
+$extmk = path[0, topdir.size+1] == topdir+"/" && %r"\A(ext|enc|tool)\z" =~ File.dirname(path[topdir.size+1..-1])
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
$topdir = $hdrdir
$top_srcdir = $hdrdir