diff options
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| |