aboutsummaryrefslogtreecommitdiff
path: root/utils/gentranscode.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2023-10-22 22:46:52 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2023-10-22 22:46:52 +0200
commit4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 (patch)
treefa08602a6225d45d8d3fb69a258980a63c3383d4 /utils/gentranscode.sh
parent97b3aa48a8d6ccdf2a3ce587bf8ac130c00c1b64 (diff)
downloadnissy-core-4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3.tar.gz
nissy-core-4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3.zip
Added transformations (and fixed tests)
Diffstat (limited to 'utils/gentranscode.sh')
-rwxr-xr-xutils/gentranscode.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/utils/gentranscode.sh b/utils/gentranscode.sh
new file mode 100755
index 0000000..abc3480
--- /dev/null
+++ b/utils/gentranscode.sh
@@ -0,0 +1,12 @@
1#!/bin/sh
2
3gcc -DDEBUG h48_to_src.c ../src/cube.c
4
5for f in transform_??_???.txt; do
6 trans="$(echo $f | sed 's/.*_// ; s/\.txt//')"
7 printf '[%s] = ' "$trans"
8 ./a.out <"$f"
9 printf ',\n'
10done
11
12rm a.out

Generated with cgit - Back to sebastiano.tronto.net