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

17 lines
336 B
Text
Raw Normal View History

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