summaryrefslogtreecommitdiff
path: root/jni/ruby/tool/build-transcode
diff options
context:
space:
mode:
authorJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-16 18:49:26 +0900
committerJari Vetoniemi <jari.vetoniemi@indooratlas.com>2020-03-30 00:39:06 +0900
commitfcbf63e62c627deae76c1b8cb8c0876c536ed811 (patch)
tree64cb17de3f41a2b6fef2368028fbd00349946994 /jni/ruby/tool/build-transcode
Fresh start
Diffstat (limited to 'jni/ruby/tool/build-transcode')
-rwxr-xr-xjni/ruby/tool/build-transcode16
1 files changed, 16 insertions, 0 deletions
diff --git a/jni/ruby/tool/build-transcode b/jni/ruby/tool/build-transcode
new file mode 100755
index 0000000..fa71155
--- /dev/null
+++ b/jni/ruby/tool/build-transcode
@@ -0,0 +1,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