diff options
Diffstat (limited to '')
| -rwxr-xr-x | utils/gentransswitch.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/utils/gentransswitch.sh b/utils/gentransswitch.sh new file mode 100755 index 0000000..6883973 --- /dev/null +++ b/utils/gentransswitch.sh | |||
| @@ -0,0 +1,8 @@ | |||
| 1 | #!/bin/sh | ||
| 2 | |||
| 3 | printf '\tswitch (t) {\n' | ||
| 4 | for f in transform_??_???.txt; do | ||
| 5 | t="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 6 | printf '\tcase %s:\n\t\treturn inline_trans_%s(c);\n' "$t" "$t" | ||
| 7 | done | ||
| 8 | printf '\t}\n' | ||
