summaryrefslogtreecommitdiff
path: root/tool/build-transcode
blob: fa71155530979a0b57508b855a7e2853814c30ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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