aboutsummaryrefslogtreecommitdiff
path: root/utils/gentransswitch.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-11-01 19:26:09 +0100
committerSebastiano Tronto <sebastiano@tronto.net>2023-11-01 19:26:09 +0100
commit08efbd62ef956327924aaea1fcfa97fde4dc1678 (patch)
tree656d9f6ab50eee73a6e7fd79098e0dcfa1fc9034 /utils/gentransswitch.sh
parentd65ce8e86b517ef3f7d48cf5ded1101444e05b2b (diff)
downloadnissy-core-08efbd62ef956327924aaea1fcfa97fde4dc1678.tar.gz
nissy-core-08efbd62ef956327924aaea1fcfa97fde4dc1678.zip
Reworked moves and transformations, moved some stuff
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