diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 19:25:04 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2024-06-09 19:25:04 +0200 |
| commit | b218c803ae1110b08b4896be0a59177e280c9091 (patch) | |
| tree | 5be2f99b20f968d3f3649f1064d60acf059f49b6 /utils/gentranstests.sh | |
| parent | c5c5017a335208881e27fc8f72c1d0145a04622a (diff) | |
| download | nissy-core-b218c803ae1110b08b4896be0a59177e280c9091.tar.gz nissy-core-b218c803ae1110b08b4896be0a59177e280c9091.zip | |
sorted utils folder
Diffstat (limited to 'utils/gentranstests.sh')
| -rwxr-xr-x | utils/gentranstests.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/utils/gentranstests.sh b/utils/gentranstests.sh index f6d6acc..18bd2c6 100755 --- a/utils/gentranstests.sh +++ b/utils/gentranstests.sh | |||
| @@ -14,8 +14,8 @@ while read -r line; do | |||
| 14 | 14 | ||
| 15 | rotation="rotation $trans_piece" | 15 | rotation="rotation $trans_piece" |
| 16 | 16 | ||
| 17 | file1="$(ls | grep move_*_${move1}.txt)" | 17 | file1="$(ls | grep cubes/move_*_${move1}.txt)" |
| 18 | file2="$(ls | grep move_*_${move2}.txt)" | 18 | file2="$(ls | grep cubes/move_*_${move2}.txt)" |
| 19 | echo "$rotation" >"$outdir/${i}_${trans_piece}r_${move1}.in" | 19 | echo "$rotation" >"$outdir/${i}_${trans_piece}r_${move1}.in" |
| 20 | cat "$file1" >>"$outdir/${i}_${trans_piece}r_${move1}.in" | 20 | cat "$file1" >>"$outdir/${i}_${trans_piece}r_${move1}.in" |
| 21 | cp "$file2" "$outdir/${i}_${trans_piece}r_${move1}.out" | 21 | cp "$file2" "$outdir/${i}_${trans_piece}r_${move1}.out" |
| @@ -25,8 +25,8 @@ while read -r line; do | |||
| 25 | mirrored="mirrored $trans_piece" | 25 | mirrored="mirrored $trans_piece" |
| 26 | move2m="$(echo ${move2} | tr 'LR' 'RL')3" | 26 | move2m="$(echo ${move2} | tr 'LR' 'RL')3" |
| 27 | 27 | ||
| 28 | file1="$(ls | grep move_*_${move1}.txt)" | 28 | file1="$(ls | grep cubes/move_*_${move1}.txt)" |
| 29 | file2="$(ls | grep move_*_${move2m}.txt)" | 29 | file2="$(ls | grep cubes/move_*_${move2m}.txt)" |
| 30 | echo "$mirrored" >"$outdir/${i}_${trans_piece}m_${move1}.in" | 30 | echo "$mirrored" >"$outdir/${i}_${trans_piece}m_${move1}.in" |
| 31 | cat "$file1" >>"$outdir/${i}_${trans_piece}m_${move1}.in" | 31 | cat "$file1" >>"$outdir/${i}_${trans_piece}m_${move1}.in" |
| 32 | cp "$file2" "$outdir/${i}_${trans_piece}m_${move1}.out" | 32 | cp "$file2" "$outdir/${i}_${trans_piece}m_${move1}.out" |
