1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

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
This commit is contained in:
nobu 2016-08-31 02:03:07 +00:00
parent 826da51bdb
commit d484b0a3b8

View file

@ -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