From b4d33513bd44c82426ef9e3c6daf5b8046672514 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 11 Jun 2024 12:05:24 +0200 Subject: Finished refactor --- utils/genmoveswitch.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'utils/genmoveswitch.sh') diff --git a/utils/genmoveswitch.sh b/utils/genmoveswitch.sh index 30cf068..4fe057c 100755 --- a/utils/genmoveswitch.sh +++ b/utils/genmoveswitch.sh @@ -1,7 +1,7 @@ #!/bin/sh printf '\tswitch (m) {\n' -for f in cubse/move_??_*.txt; do +for f in cubes/move_??_*.txt; do t="$(echo $f | sed 's/.*_// ; s/\.txt//')" printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" done -- cgit v1.3