summaryrefslogtreecommitdiff
path: root/tool/build-transcode
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-11 07:39:52 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-08-11 07:39:52 +0000
commit2897632f163143e03f83ba47d2611c3357974c36 (patch)
tree1dc5809a9e128aec90f1001b58d0b55d0e93580f /tool/build-transcode
parent36dd9a222113b361492dc82a736a001f138f300a (diff)
* enc/trans/iso2022.trans: renamed from iso2022.erb.c.
* enc/trans/single_byte.trans: ditto. * enc/trans/utf_16_32.trans: ditto. * enc/trans/korean.trans: ditto. * enc/trans/japanese.trans: ditto. * enc/depend: follow the renaming. * tool/build-transcode: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18488 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool/build-transcode')
-rwxr-xr-xtool/build-transcode14
1 files changed, 7 insertions, 7 deletions
diff --git a/tool/build-transcode b/tool/build-transcode
index 69ffac2..fa71155 100755
--- a/tool/build-transcode
+++ b/tool/build-transcode
@@ -1,15 +1,15 @@
#!/bin/sh
[ "$1" -a -d "$1" ] && { cd "$1" || exit $?; } && shift
-[ "$#" = 0 ] && set enc/trans/*.erb.c
-for erb; do
- case "$erb" in
- *.erb.c)
- src=`expr "$erb" | sed 's/\.erb\.c$/.c/'`
- ${BASERUBY-ruby} tool/transcode-tblgen.rb -vo "$src" "$erb"
+[ "$#" = 0 ] && set enc/trans/*.trans
+for src; do
+ case "$src" in
+ *.trans)
+ c="`dirname $src`/`basename $src .trans`.c"
+ ${BASERUBY-ruby} tool/transcode-tblgen.rb -vo "$c" "$src"
;;
*)
- echo "$0: don' know how to deal with $erb"
+ echo "$0: don't know how to deal with $src"
continue
;;
esac