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

* enc/make_encmake.rb: added --transes and --no-transes options.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
mame 2015-06-18 14:03:51 +00:00
parent 0b9d86f29b
commit e8ce2a92d3
2 changed files with 16 additions and 0 deletions

View file

@ -1,3 +1,7 @@
Thu Jun 18 22:50:07 2015 Yusuke Endoh <mame@ruby-lang.org>
* enc/make_encmake.rb: added --transes and --no-transes options.
Thu Jun 18 18:24:12 2015 Eric Wong <e@80x24.org>
* test/socket/test_unix.rb: replace sleep with select

View file

@ -15,6 +15,8 @@ BUILTIN_ENCS = []
BUILTIN_TRANSES = []
ENC_PATTERNS = []
NOENC_PATTERNS = []
TRANS_PATTERNS = []
NOTRANS_PATTERNS = []
module_type = :dynamic
until ARGV.empty?
@ -31,6 +33,12 @@ until ARGV.empty?
when /\A--no-encs=/
NOENC_PATTERNS.concat $'.split
ARGV.shift
when /\A--transes=/
TRANS_PATTERNS.concat $'.split
ARGV.shift
when /\A--no-transes=/
NOTRANS_PATTERNS.concat $'.split
ARGV.shift
when /\A--module$/
ARGV.shift
when /\A--modulestatic$/
@ -91,6 +99,10 @@ def target_transcoders
trans -= BUILTIN_TRANSES
atrans -= BUILTIN_TRANSES
trans.uniq!
atrans.reject! {|e| !TRANS_PATTERNS.any? {|p| File.fnmatch?(p, e)}} if !TRANS_PATTERNS.empty?
atrans.reject! {|e| NOTRANS_PATTERNS.any? {|p| File.fnmatch?(p, e)}}
trans.reject! {|e| !TRANS_PATTERNS.any? {|p| File.fnmatch?(p, e)}} if !TRANS_PATTERNS.empty?
trans.reject! {|e| NOTRANS_PATTERNS.any? {|p| File.fnmatch?(p, e)}}
atrans = atrans.sort_by(&ALPHANUMERIC_ORDER)
trans = trans.sort_by(&ALPHANUMERIC_ORDER)
trans.delete(db = "transdb")