summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-07 16:11:40 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-07 16:11:40 +0000
commit08c3dd54bfabc69ef235877e24b4fef1972c0d99 (patch)
tree14adba9e97df801ac2469c73b8ccc863b0c03739 /tool
parent249705229f8fa1d960af257855b44ca70668ea4d (diff)
* tool/transcode-tblgen.rb (transcode_tblgen): log message refined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rw-r--r--tool/transcode-tblgen.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/tool/transcode-tblgen.rb b/tool/transcode-tblgen.rb
index b90b18cc1e8..2eb4a015651 100644
--- a/tool/transcode-tblgen.rb
+++ b/tool/transcode-tblgen.rb
@@ -603,7 +603,13 @@ TRANSCODERS = []
TRANSCODE_GENERATED_TRANSCODER_CODE = ''
def transcode_tblgen(from, to, map)
- STDERR.puts "converter from #{from} to #{to}" if VERBOSE_MODE
+ if VERBOSE_MODE
+ if from.empty? || to.empty?
+ STDERR.puts "converter for #{from.empty? ? to : from}"
+ else
+ STDERR.puts "converter from #{from} to #{to}"
+ end
+ end
id_from = from.tr('^0-9A-Za-z', '_')
id_to = to.tr('^0-9A-Za-z', '_')
if from == "UTF-8"