diff options
Diffstat (limited to 'utils/gentranscode.sh')
| -rwxr-xr-x | utils/gentranscode.sh | 12 |
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 | |||
| 3 | gcc -DDEBUG h48_to_src.c ../src/cube.c | ||
| 4 | |||
| 5 | for f in transform_??_???.txt; do | ||
| 6 | trans="$(echo $f | sed 's/.*_// ; s/\.txt//')" | ||
| 7 | printf '[%s] = ' "$trans" | ||
| 8 | ./a.out <"$f" | ||
| 9 | printf ',\n' | ||
| 10 | done | ||
| 11 | |||
| 12 | rm a.out | ||
