summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2021-05-30 14:52:24 +0200
committeremkael <emkael@tlen.pl>2021-05-30 14:52:24 +0200
commit7f5fb5da2f4479c8869b1f71fc2929030cd14428 (patch)
treebdd93fa05991ede9150493f0cb65f21188b678ed
parent818c8aa9f3a294880bc0a44181f574578bd40e74 (diff)
Playoff generators setup
Fixes #1
-rw-r--r--.envrcbin400 -> 583 bytes
-rw-r--r--.gitmodules3
-rw-r--r--Makefile4
-rw-r--r--_cron/playoff3
m---------playoff0
5 files changed, 10 insertions, 0 deletions
diff --git a/.envrc b/.envrc
index abd4edb..3f87537 100644
--- a/.envrc
+++ b/.envrc
Binary files differ
diff --git a/.gitmodules b/.gitmodules
index d0626d0..23436b3 100644
--- a/.gitmodules
+++ b/.gitmodules
@@ -4,3 +4,6 @@
[submodule "ausbutler"]
path = ausbutler
url = https://github.com/emkael/pzbs-liga-ausbutler
+[submodule "playoff"]
+ path = playoff
+ url = git@github.com:PZBS/liga-playoff
diff --git a/Makefile b/Makefile
index e579a88..e1f0e3e 100644
--- a/Makefile
+++ b/Makefile
@@ -24,4 +24,8 @@ butler: dumps FORCE
ausbutler: FORCE
./ausbutler/ausbutler-all.sh
+playoff: FORCE
+ ./playoff/scripts/generate.sh
+ ./playoff/scripts/sync.sh
+
FORCE:
diff --git a/_cron/playoff b/_cron/playoff
new file mode 100644
index 0000000..ad35c5f
--- /dev/null
+++ b/_cron/playoff
@@ -0,0 +1,3 @@
+SHELL=/bin/bash
+*/3 * * * * cd $SITEPATH && source .envrc && make playoff >> $SITEPATH/_log/playoff.log 2>&1
+SHELL=/bin/sh
diff --git a/playoff b/playoff
new file mode 160000
+Subproject edc989d202aa1448741f43a3ac78ac8c56ccafb