diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-08 07:09:03 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-08-08 07:09:03 +0000 |
commit | 2f37e03736cb4eabc5b94544a4d1d80adf9f2f90 (patch) | |
tree | e4fee889dd12ec05023627a13842a40b5d3c91d1 /enc | |
parent | 73d3ff007478b7e62316afd870b73d10a96a9ffe (diff) | |
download | ruby-2f37e03736cb4eabc5b94544a4d1d80adf9f2f90.tar.gz |
* 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
Diffstat (limited to 'enc')
-rw-r--r-- | enc/trans/make_transdb.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/enc/trans/make_transdb.rb b/enc/trans/make_transdb.rb index aa69fc9007..6016db8b5b 100644 --- a/enc/trans/make_transdb.rb +++ b/enc/trans/make_transdb.rb @@ -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| |