diff options
Diffstat (limited to 'scripts/generate-all.sh')
-rwxr-xr-x | scripts/generate-all.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh new file mode 100755 index 0000000..f6e64e0 --- /dev/null +++ b/scripts/generate-all.sh @@ -0,0 +1,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 + |