mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
make_encmake.rb: mandatory dbs
* enc/make_encmake.rb (target_transcoders, target_encodings): encdb and transdb are always mandatory. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50953 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ae8dc6f3dd
commit
cf44e74092
1 changed files with 3 additions and 2 deletions
|
@ -51,7 +51,7 @@ def target_encodings
|
|||
deps = Hash.new {[]}
|
||||
inc_srcs = Hash.new {[]}
|
||||
default_deps = %w[regenc.h oniguruma.h config.h defines.h]
|
||||
db = encs.delete("encdb")
|
||||
encs.delete(db = "encdb")
|
||||
encs.each do |e|
|
||||
File.foreach("#$srcdir/#{e}.c") do |l|
|
||||
if /^\s*#\s*include\s+(?:"([^\"]+)"|<(ruby\/\sw+.h)>)/ =~ l
|
||||
|
@ -93,7 +93,8 @@ def target_transcoders
|
|||
trans.uniq!
|
||||
atrans = atrans.sort_by(&ALPHANUMERIC_ORDER)
|
||||
trans = trans.sort_by(&ALPHANUMERIC_ORDER)
|
||||
trans.unshift(trans.delete("transdb"))
|
||||
trans.delete(db = "transdb")
|
||||
trans.unshift(db)
|
||||
trans.compact!
|
||||
trans |= atrans
|
||||
trans.map! {|e| "trans/#{e}"}
|
||||
|
|
Loading…
Add table
Reference in a new issue