blob: 210161aa970a9faba50567b04cc9712a2af34387 (
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
output_file=output.html
generate_playoff () {
rm -f $output_file
filename=$1
ftp_path=$2
echo "Generating $filename to $ftp_path..."
$python playoff.py ../../$filename.jtpo
echo "Uploading to $ftp_path..."
scp $output_file pzbs:~/liga/$ftp_path
rm -f $output_file
echo "Done"
}
generate_playoff eklasa ekstraklasa/playoff.html
generate_playoff 1n 1liga/n/playoff.html
generate_playoff 1s 1liga/s/playoff.html
generate_playoff 2nw 2liga/nw/playoff.html
generate_playoff 2ne 2liga/ne/playoff.html
generate_playoff 2se 2liga/se/playoff.html
generate_playoff 2sw 2liga/sw/playoff.html
|