summaryrefslogtreecommitdiff
path: root/ext/extmk.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-31 02:03:07 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-08-31 02:03:07 +0000
commitd484b0a3b863d9ee61e3a9b6825f604aa06f845a (patch)
treed49dee0a2890a48af6df7ba608ea979710ae4405 /ext/extmk.rb
parent826da51bdbce5b1e3b16818bd2221a7773322c4b (diff)
extmk.rb: filter gems
* ext/extmk.rb: filter gems as well as exts. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56045 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rwxr-xr-xext/extmk.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index d5592e1..0aaa483 100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -541,10 +541,12 @@ end
FileUtils.makedirs('gems')
ext_prefix = "#$top_srcdir/gems"
-gems = Dir.glob("#{ext_prefix}/**/extconf.rb").collect {|d|
+gems = Dir.glob(File.join(ext_prefix, ($extension || ''), '**/extconf.rb')).collect {|d|
d = File.dirname(d)
d.slice!(0, ext_prefix.length + 1)
d
+}.find_all {|ext|
+ with_config(ext, &cond)
}.sort
dir = Dir.pwd