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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

17 lines
344 B
Text
Raw Normal View History

#!/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