forked from rozim/ChessData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathall-2600.sh
executable file
·29 lines (22 loc) · 960 Bytes
/
all-2600.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/bin/bash -e
rm -f mega2600*.pgn */mega2600*.pgn
rm -f mega2600*.err */mega2600*.err
for d in RebelSite Convekta Kingbase Britbase PgnMentor ChessNostalgia.com WorldChampionships Corus ChessOk.com PgnDownloads Chessopolis.com Twic Npollock Bundesliga; do
echo $d
files=$(ls ${d}/*.pgn | grep -v mega)
time ./pe2600.sh ${files} > ${d}/prelim2600.pgn 2> ${d}/prelim2600.err
# kludge -- want to do elo >= 2600 and elo < 3000
time ./pe3000.sh ${d}/prelim2600.pgn > ${d}/mega2600.pgn 2> ${d}/mega2600.err
time python Code/xsplit.py ${d}/mega2600.pgn
echo " "
done
echo " "
echo FINAL
time ./pe2600.sh */mega2600*.pgn > prelim2600.pgn 2> prelim2600.err
echo FINALb
time ./pe3000.sh prelim2600.pgn > mega2600.pgn 2> mega2600.err
echo SPLIT
time python Code/xsplit.py mega2600.pgn */mega2600.pgn
git add mega2600*.pgn */mega2600*.pgn
git commit -m "mega2600 update" mega2600*.pgn */mega2600*.pgn
rm prelim2600.pgn */prelim2600.pgn