From 4a7e2dccaa54bc42a4b67cf35cf8b926cf357bb3 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Sun, 22 Oct 2023 22:46:52 +0200 Subject: Added transformations (and fixed tests) --- utils/gentranscode.sh | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 utils/gentranscode.sh (limited to 'utils/gentranscode.sh') 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 @@ +#!/bin/sh + +gcc -DDEBUG h48_to_src.c ../src/cube.c + +for f in transform_??_???.txt; do + trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" + printf '[%s] = ' "$trans" + ./a.out <"$f" + printf ',\n' +done + +rm a.out -- cgit v1.3