summaryrefslogtreecommitdiff
path: root/ausbutler-single.sh
blob: 2f95c68225929406b28ea970258fbd8270847166 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/bin/bash
set -eu
TOURNAMENT=$1
cd "$(dirname "$0")"

echo "Processing $TOURNAMENT..."

set -o allexport
source configs/_common.env
source configs/$TOURNAMENT.env
set +o allexport

ls config.template | while read CONFIGFILE
do
    envsubst < config.template/$CONFIGFILE > config/$CONFIGFILE
done
python jfrteamy-ausbutler/butler.py calculate generate nowait

echo "Done"