-
Notifications
You must be signed in to change notification settings - Fork 29
/
Copy pathall-2600.sh
executable file
·37 lines (29 loc) · 1.19 KB
/
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
30
31
32
33
34
35
36
37
#!/bin/bash -e -o pipefail -u
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
test -s ${d}/mega2600.pgn
echo STATUS $?
# if [ -s ${d}/mega2600.pgn ]; then
# echo ERROR ${d}/mega2600.pgn empty `wc -c ${d}/mega2600.pgn` 2>&1
# exit 99
# fi
# echo GOOD ${d}/mega2600.pgn `wc -c ${d}/mega2600.pgn`
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