aboutsummaryrefslogtreecommitdiff
path: root/utils/genmovecode.sh
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-06-11 12:05:24 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-06-11 12:05:24 +0200
commitb4d33513bd44c82426ef9e3c6daf5b8046672514 (patch)
treedb64d441059897974d270614cd1ad22d15fc8e56 /utils/genmovecode.sh
parentc89c5a1832354d656757c5aff49018d0313838e0 (diff)
downloadnissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.tar.gz
nissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.zip
Finished refactor
Diffstat (limited to 'utils/genmovecode.sh')
-rwxr-xr-xutils/genmovecode.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/genmovecode.sh b/utils/genmovecode.sh
index 2e4040b..daf268e 100755
--- a/utils/genmovecode.sh
+++ b/utils/genmovecode.sh
@@ -1,9 +1,9 @@
1#!/bin/sh 1#!/bin/sh
2 2
3gcc -DDEBUG h48_to_lst.c ../src/cube.c -o h48_to_lst 3cc -DDEBUG h48_to_lst.c ../src/cube.c -o h48_to_lst
4 4
5gen() { 5gen() {
6 for f in cubse/move_??_*.txt; do 6 for f in cubes/move_??_*.txt; do
7 move="$(echo $f | sed 's/.*_// ; s/\.txt//')" 7 move="$(echo $f | sed 's/.*_// ; s/\.txt//')"
8 printf '#define _move_cube_%s fastcube( \\\n ' "$move" 8 printf '#define _move_cube_%s fastcube( \\\n ' "$move"
9 ./h48_to_lst <"$f" 9 ./h48_to_lst <"$f"

Generated with cgit - Back to sebastiano.tronto.net