mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* enc/make_encdb.rb, enc/trans/make_transdb.rb: skip nonexistent
directory. [ruby-dev:35802] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
94342f89f9
commit
1727355a22
3 changed files with 7 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
Sat Aug 9 06:37:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
|
||||
|
||||
* enc/make_encdb.rb, enc/trans/make_transdb.rb: skip nonexistent
|
||||
directory. [ruby-dev:35802]
|
||||
|
||||
Sat Aug 9 01:07:51 2008 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* enc/trans/utf_16_32.erb.c (fun_so_from_utf_32le): implemented.
|
||||
|
|
|
@ -27,6 +27,7 @@ outhdr = encdirs.shift || 'encdb.h'
|
|||
encdirs << 'enc' if encdirs.empty?
|
||||
files = {}
|
||||
encdirs.each do |encdir|
|
||||
next unless File.directory?(encdir)
|
||||
Dir.open(encdir) {|d| d.grep(/.+\.[ch]\z/)}.sort_by {|e|
|
||||
e.scan(/(\d+)|(\D+)/).map {|n,a| a||[n.size,n.to_i]}.flatten
|
||||
}.each do |fn|
|
||||
|
|
|
@ -13,6 +13,7 @@ outhdr = transdirs.shift || 'transdb.h'
|
|||
transdirs << 'enc/trans' if transdirs.empty?
|
||||
files = {}
|
||||
transdirs.each do |transdir|
|
||||
next unless File.directory?(transdir)
|
||||
Dir.open(transdir) {|d| d.grep(/.+\.[ch]\z/).reject {|n| /\.erb\.c\z/ =~ n }}.sort_by {|e|
|
||||
e.scan(/(\d+)|(\D+)/).map {|n,a| a||[n.size,n.to_i]}.flatten
|
||||
}.each do |fn|
|
||||
|
|
Loading…
Reference in a new issue