diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-01 19:26:09 +0100 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2023-11-01 19:26:09 +0100 |
| commit | 08efbd62ef956327924aaea1fcfa97fde4dc1678 (patch) | |
| tree | 656d9f6ab50eee73a6e7fd79098e0dcfa1fc9034 /utils/gentransswitch.sh | |
| parent | d65ce8e86b517ef3f7d48cf5ded1101444e05b2b (diff) | |
| download | nissy-core-08efbd62ef956327924aaea1fcfa97fde4dc1678.tar.gz nissy-core-08efbd62ef956327924aaea1fcfa97fde4dc1678.zip | |
Reworked moves and transformations, moved some stuff
Diffstat (limited to 'utils/gentransswitch.sh')
| -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' | ||
