aboutsummaryrefslogtreecommitdiff
path: root/utils/gentransswitch.sh
blob: 68839732c28a7e1404402a95e42862612c25ff2b (plain)
1
2
3
4
5
6
7
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'

Generated with cgit - Back to sebastiano.tronto.net