summaryrefslogtreecommitdiff
path: root/scripts/generate-all.sh
blob: f6e64e00f5c9066535e81a1dd1b3413d2f940aa8 (plain)
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
#!/bin/bash
set -e

cd "$(dirname "$0")"/jfrteamy-playoff
python=venv/bin/python

# level = 1 or 2
# group = "n" or "nw" or "se" or ...
generate_playoff () {
    rm -f playoff.html
    level=$1
    group=$2
    echo "Generating $level$group..."
    $python playoff.py ../../$level$group.json
    echo "Uploading $level$group..."
    scp playoff.html pzbs:~/liga/${level}liga/$group/playoff.html
    rm -f playoff.html
    echo "Done"
}

generate_playoff 1 n
generate_playoff 1 s
generate_playoff 2 nw
generate_playoff 2 ne
generate_playoff 2 se
generate_playoff 2 sw