mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Now bundled gems are extracted under .bundle/gems
This commit is contained in:
parent
0d38a51ec4
commit
1e7c0ccb0d
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ srcdir ||= File.dirname(File.dirname(__FILE__))
|
|||
exts = {}
|
||||
[
|
||||
["exts", "ext", "--extstatic $(EXTSTATIC)"],
|
||||
["gems", "gems", "--no-extstatic"],
|
||||
["gems", ".bundle/gems", "--no-extstatic"],
|
||||
].each do |t, d, o|
|
||||
exts[t] = [o, Dir.glob("#{srcdir}/#{d}/*/").map {|n| n[(srcdir.size+1)..-2]}]
|
||||
end
|
||||
|
|
|
@ -17,7 +17,7 @@ opt = OptionParser.new do |o|
|
|||
o.order!(ARGV)
|
||||
end
|
||||
contpat = /(?>(?>[^\\\n]|\\.)*\\\n)*(?>[^\\\n]|\\.)*/
|
||||
Dir.glob("{ext,gems}/*/exts.mk") do |e|
|
||||
Dir.glob("{ext,.bundle/gems}/*/exts.mk") do |e|
|
||||
gem = /\Agems(?=\/)/ =~ e
|
||||
s = File.read(e)
|
||||
s.scan(/^(extensions|SUBMAKEOPTS|EXT[A-Z]+|MFLAGS|NOTE_[A-Z]+)[ \t]*=[ \t]*(#{contpat})$/o) do |n, v|
|
||||
|
|
Loading…
Reference in a new issue