From 08efbd62ef956327924aaea1fcfa97fde4dc1678 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Wed, 1 Nov 2023 19:26:09 +0100 Subject: Reworked moves and transformations, moved some stuff --- utils/gentransswitch.sh | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 utils/gentransswitch.sh (limited to 'utils/gentransswitch.sh') 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 @@ +#!/bin/sh + +printf '\tswitch (t) {\n' +for f in transform_??_???.txt; do + t="$(echo $f | sed 's/.*_// ; s/\.txt//')" + printf '\tcase %s:\n\t\treturn inline_trans_%s(c);\n' "$t" "$t" +done +printf '\t}\n' -- cgit v1.3