* transcode.c (trans_open_i): check the result of rb_transcoding_open.
[ruby-svn.git] / tool / build-transcode
blobfa71155530979a0b57508b855a7e2853814c30ec
1 #!/bin/sh
3 [ "$1" -a -d "$1" ] && { cd "$1" || exit $?; } && shift
4 [ "$#" = 0 ] && set enc/trans/*.trans
5 for src; do
6 case "$src" in
7 *.trans)
8 c="`dirname $src`/`basename $src .trans`.c"
9 ${BASERUBY-ruby} tool/transcode-tblgen.rb -vo "$c" "$src"
12 echo "$0: don't know how to deal with $src"
13 continue
15 esac
16 done