aboutsummaryrefslogtreecommitdiff
path: root/utils/gentransswitch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'utils/gentransswitch.sh')
-rwxr-xr-xutils/gentransswitch.sh14
1 files changed, 0 insertions, 14 deletions
diff --git a/utils/gentransswitch.sh b/utils/gentransswitch.sh
deleted file mode 100755
index 20e2bfb..0000000
--- a/utils/gentransswitch.sh
+++ /dev/null
@@ -1,14 +0,0 @@
1#!/bin/sh
2
3printf '\tswitch (t) {\n'
4for f in cubes/transform_??_???.txt; do
5 t="$(echo "$f" | sed 's/.*_// ; s/\.txt//')"
6 mirror_or_rotation="$(echo "$t" | grep m)"
7 if [ -z "$mirror_or_rotation" ]; then
8 m="rotation"
9 else
10 m="mirrored"
11 fi
12 printf '\tcase %s:\n\t\treturn _trans_%s(%s, c);\n' "$t" "$m" "$t"
13done
14printf '\t}\n'

Generated with cgit - Back to sebastiano.tronto.net