From 4fae6e9a0504428825125a02d44c2d54575b6e1a Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 30 May 2021 14:47:40 +0200 Subject: Migrating old scripts to archive --- scripts/archive/generate-all.sh | 26 ++++++++++++++++++++++++++ scripts/archive/setup.sh | 9 +++++++++ scripts/generate-all.sh | 26 -------------------------- scripts/setup.sh | 9 --------- 4 files changed, 35 insertions(+), 35 deletions(-) create mode 100755 scripts/archive/generate-all.sh create mode 100755 scripts/archive/setup.sh delete mode 100755 scripts/generate-all.sh delete mode 100755 scripts/setup.sh (limited to 'scripts') diff --git a/scripts/archive/generate-all.sh b/scripts/archive/generate-all.sh new file mode 100755 index 0000000..dac5f99 --- /dev/null +++ b/scripts/archive/generate-all.sh @@ -0,0 +1,26 @@ +#!/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 playoff@webserver.pzbs.pl:~/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 diff --git a/scripts/archive/setup.sh b/scripts/archive/setup.sh new file mode 100755 index 0000000..216cfa2 --- /dev/null +++ b/scripts/archive/setup.sh @@ -0,0 +1,9 @@ +#!/bin/bash +set -e +cd "$(dirname "$0")"/jfrteamy-playoff + +if [ ! -d venv ]; then + virtualenv venv +fi +venv/bin/pip install -r requirements.txt + diff --git a/scripts/generate-all.sh b/scripts/generate-all.sh deleted file mode 100755 index dac5f99..0000000 --- a/scripts/generate-all.sh +++ /dev/null @@ -1,26 +0,0 @@ -#!/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 playoff@webserver.pzbs.pl:~/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 diff --git a/scripts/setup.sh b/scripts/setup.sh deleted file mode 100755 index 216cfa2..0000000 --- a/scripts/setup.sh +++ /dev/null @@ -1,9 +0,0 @@ -#!/bin/bash -set -e -cd "$(dirname "$0")"/jfrteamy-playoff - -if [ ! -d venv ]; then - virtualenv venv -fi -venv/bin/pip install -r requirements.txt - -- cgit v1.2.3