aboutsummaryrefslogtreecommitdiff
path: root/utils/gentransswitch.sh
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xutils/gentransswitch.sh8
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
3printf '\tswitch (t) {\n'
4for 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"
7done
8printf '\t}\n'

Generated with cgit - Back to sebastiano.tronto.net