diff --git a/ChangeLog b/ChangeLog index 0878c3dbb3..4526000ac7 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,4 +1,6 @@ -Fri Aug 8 16:03:32 2008 Nobuyoshi Nakada +Fri Aug 8 16:09:01 2008 Nobuyoshi Nakada + + * 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. 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|