1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/tool/build-transcode
akr 2897632f16 * 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
2008-08-11 07:39:52 +00:00

16 lines
344 B
Bash
Executable file

#!/bin/sh
[ "$1" -a -d "$1" ] && { cd "$1" || exit $?; } && shift
[ "$#" = 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't know how to deal with $src"
continue
;;
esac
done