diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-11 12:05:24 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-11 12:05:24 +0200 |
| commit | b4d33513bd44c82426ef9e3c6daf5b8046672514 (patch) | |
| tree | db64d441059897974d270614cd1ad22d15fc8e56 /utils/genmoveswitch.sh | |
| parent | c89c5a1832354d656757c5aff49018d0313838e0 (diff) | |
| download | nissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.tar.gz nissy-core-b4d33513bd44c82426ef9e3c6daf5b8046672514.zip | |
Finished refactor
Diffstat (limited to 'utils/genmoveswitch.sh')
| -rwxr-xr-x | utils/genmoveswitch.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ | |||
| 1 | #!/bin/sh | 1 | #!/bin/sh |
| 2 | 2 | ||
| 3 | printf '\tswitch (m) {\n' | 3 | printf '\tswitch (m) {\n' |
| 4 | for f in cubse/move_??_*.txt; do | 4 | for f in cubes/move_??_*.txt; do |
| 5 | t="$(echo $f | sed 's/.*_// ; s/\.txt//')" | 5 | t="$(echo $f | sed 's/.*_// ; s/\.txt//')" |
| 6 | printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" | 6 | printf '\tcase %s:\n\t\treturn _move(%s, c);\n' "$t" "$t" |
| 7 | done | 7 | done |
