diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 09:00:15 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-22 09:00:15 +0200 |
| commit | 8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc (patch) | |
| tree | b79d8154f16a0dadd8d8265d32b8bd95e96263aa /utils/gentransswitch.sh | |
| parent | 510a7471348788fccba6b7c4b9f7b7cc9aee6ba9 (diff) | |
| download | nissy-core-8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc.tar.gz nissy-core-8b72e391c7185e3da0dfbf0ab60068ac37e4d5cc.zip | |
Removed old scripts and updated public API
Diffstat (limited to 'utils/gentransswitch.sh')
| -rwxr-xr-x | utils/gentransswitch.sh | 14 |
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 | |||
| 3 | printf '\tswitch (t) {\n' | ||
| 4 | for 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" | ||
| 13 | done | ||
| 14 | printf '\t}\n' | ||
