зеркало из https://github.com/github/ruby.git
* enc/trans/make_transdb.rb: fix for the case no transdirs are given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
73d3ff0074
Коммит
2f37e03736
|
@ -1,4 +1,6 @@
|
||||||
Fri Aug 8 16:03:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
Fri Aug 8 16:09:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||||
|
|
||||||
|
* enc/trans/make_transdb.rb: fix for the case no transdirs are given.
|
||||||
|
|
||||||
* enc/trans/make_transdb.rb: converts only one transcoders for each
|
* enc/trans/make_transdb.rb: converts only one transcoders for each
|
||||||
basename.
|
basename.
|
||||||
|
|
|
@ -9,7 +9,8 @@
|
||||||
count = 0
|
count = 0
|
||||||
converters = {}
|
converters = {}
|
||||||
outhdr = ARGV[0] || 'transdb.h'
|
outhdr = ARGV[0] || 'transdb.h'
|
||||||
transdirs = ARGV[1..-1] || 'enc/trans'
|
transdirs = ARGV[1..-1]
|
||||||
|
transdirs << 'enc/trans' if transdirs.empty?
|
||||||
files = {}
|
files = {}
|
||||||
transdirs.each do |transdir|
|
transdirs.each do |transdir|
|
||||||
Dir.open(transdir) {|d| d.grep(/.+\.[ch]\z/).reject {|n| /\.erb\.c\z/ =~ n }}.sort_by {|e|
|
Dir.open(transdir) {|d| d.grep(/.+\.[ch]\z/).reject {|n| /\.erb\.c\z/ =~ n }}.sort_by {|e|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче