feat: fast-chess-tag can save multiple PGNs for the same players
it will use number indices instead of asking to delete the first PGN.
This commit is contained in:
parent
612e6ffc15
commit
3885bd7948
@ -59,9 +59,13 @@ mkdir -p games
|
|||||||
PGN=games/"$TAG1"__"$TAG2".pgn
|
PGN=games/"$TAG1"__"$TAG2".pgn
|
||||||
|
|
||||||
rm -f engine1 engine2
|
rm -f engine1 engine2
|
||||||
if [ -f "$PGN" ]; then
|
|
||||||
rm -i "$PGN"
|
IDX=1
|
||||||
fi
|
while [ -e "$PGN" ]; do
|
||||||
|
PGN=games/"$TAG1"__"$TAG2"__"$IDX".pgn
|
||||||
|
IDX=$(( $IDX + 1 ))
|
||||||
|
done
|
||||||
|
printf "using pgn output: %s\n" "$PGN" > /dev/stderr
|
||||||
|
|
||||||
git checkout "$TAG1"
|
git checkout "$TAG1"
|
||||||
cargo build --release
|
cargo build --release
|
||||||
|
Loading…
Reference in New Issue
Block a user