diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rwxr-xr-x | ext/extmk.rb | 1 |
2 files changed, 4 insertions, 1 deletions
@@ -1,4 +1,6 @@ -Wed Dec 29 20:31:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> +Wed Dec 29 20:37:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> + + * ext/extmk.rb: strip current directory prefix. * enc/depend (clean): remove name2ctype.h when out-of-place build. diff --git a/ext/extmk.rb b/ext/extmk.rb index 44c0b94aa8..f439be1248 100755 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -415,6 +415,7 @@ cond = proc {|ext, *| withes.call(cond1) or !withouts.call(cond1) } ($extension || %w[*]).each do |e| + e = e.sub(/\A(?:\.\/)+/, '') exts |= Dir.glob("#{ext_prefix}/#{e}/**/extconf.rb").collect {|d| d = File.dirname(d) d.slice!(0, ext_prefix.length + 1) |