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
nobu 0031e09170 * common.mk (transcodes), tool/build-transcode: generates transcode
sources.

* enc/trans/{japanese,korean,single_byte,utf_16_32}.c: to be
  autogenerated now.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05 18:56:42 +00:00

16 lines
336 B
Bash
Executable file

#!/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"
;;
*)
echo "$0: don' know how to deal with $erb"
continue
;;
esac
done