mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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:
parent
73d3ff0074
commit
2f37e03736
2 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
basename.
|
||||
|
|
|
@ -9,7 +9,8 @@
|
|||
count = 0
|
||||
converters = {}
|
||||
outhdr = ARGV[0] || 'transdb.h'
|
||||
transdirs = ARGV[1..-1] || 'enc/trans'
|
||||
transdirs = ARGV[1..-1]
|
||||
transdirs << 'enc/trans' if transdirs.empty?
|
||||
files = {}
|
||||
transdirs.each do |transdir|
|
||||
Dir.open(transdir) {|d| d.grep(/.+\.[ch]\z/).reject {|n| /\.erb\.c\z/ =~ n }}.sort_by {|e|
|
||||
|
|
Loading…
Add table
Reference in a new issue