From d05b4e2f70b816871d1e7eedfe680d8cd931f027 Mon Sep 17 00:00:00 2001 From: Michal Zimniewicz Date: Sat, 4 Jan 2020 12:41:46 +0100 Subject: add two separate scripts for single and bulk processing --- ausbutler-all.sh | 7 +++++++ ausbutler-single.sh | 15 +++++++++++++++ ausbutler.sh | 7 ------- 3 files changed, 22 insertions(+), 7 deletions(-) create mode 100755 ausbutler-all.sh create mode 100755 ausbutler-single.sh delete mode 100755 ausbutler.sh diff --git a/ausbutler-all.sh b/ausbutler-all.sh new file mode 100755 index 0000000..2bc2d80 --- /dev/null +++ b/ausbutler-all.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -eu +cd "$(dirname "$0")" +while read -r TOURNAMENT +do + ./ausbutler-single.sh $TOURNAMENT +done < tournaments.txt diff --git a/ausbutler-single.sh b/ausbutler-single.sh new file mode 100755 index 0000000..a8f9271 --- /dev/null +++ b/ausbutler-single.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -eu +TOURNAMENT=$1 +cd "$(dirname "$0")" + +echo "Processing $TOURNAMENT..." +echo "" + +ln -sfn configs/config.$TOURNAMENT config +python jfrteamy-ausbutler/butler.py calculate generate nowait + +echo "" +echo "Done" +echo "" + diff --git a/ausbutler.sh b/ausbutler.sh deleted file mode 100755 index c1a9112..0000000 --- a/ausbutler.sh +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -cd "$(dirname "$0")" -while read -r TOURNAMENT -do - ln -sfn configs/config.$TOURNAMENT config - python jfrteamy-ausbutler/butler.py calculate generate nowait -done < tournaments.txt -- cgit v1.2.3