summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2021-05-30 14:49:23 +0200
committeremkael <emkael@tlen.pl>2021-05-30 14:49:23 +0200
commitedc989d202aa1448741f43a3ac78ac8c56ccafbe (patch)
treeb703f93ff1f14fa4f33b860784d62fed124a3231
parentaa8bb4af737032b65abd924d11a499558879f565 (diff)
New generate and sync scripts
-rw-r--r--scripts/.groups1
-rwxr-xr-xscripts/generate.sh7
-rwxr-xr-xscripts/sync.sh7
3 files changed, 15 insertions, 0 deletions
diff --git a/scripts/.groups b/scripts/.groups
new file mode 100644
index 0000000..0251426
--- /dev/null
+++ b/scripts/.groups
@@ -0,0 +1 @@
+eklasa
diff --git a/scripts/generate.sh b/scripts/generate.sh
new file mode 100755
index 0000000..4a42d36
--- /dev/null
+++ b/scripts/generate.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+cd $(dirname $0)
+cd ..
+cat scripts/.groups | while read GROUP
+do
+ python2 scripts/jfrteamy-playoff/playoff.py $GROUP.jtpo -v
+done
diff --git a/scripts/sync.sh b/scripts/sync.sh
new file mode 100755
index 0000000..de16acd
--- /dev/null
+++ b/scripts/sync.sh
@@ -0,0 +1,7 @@
+#!/bin/bash
+cd $(dirname $0)
+cd ../output
+lftp << EOF
+ open -u ${LIGA_PLAYOFF_FTP_USER},${LIGA_PLAYOFF_FTP_PASS} ${LIGA_PLAYOFF_FTP_HOST}
+ mirror -R . ${LIGA_PLAYOFF_FTP_PATH}
+EOF