summaryrefslogtreecommitdiff
path: root/admin/build-indexes.sh
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2022-07-09 15:18:29 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2022-07-09 15:18:29 +0200
commit8efb5b6772282e11e212edf67c8befe22ea8c06f (patch)
tree2a29179a85698973fe2724ce9fc601ca96a4f944 /admin/build-indexes.sh
parent1dd8b8f4e036d2ef10a2504df1a281966f454b04 (diff)
downloadquatuorbellefeuille.com-8efb5b6772282e11e212edf67c8befe22ea8c06f.tar.xz
Add plumbing to update next concert on the frontpage
Diffstat (limited to 'admin/build-indexes.sh')
-rwxr-xr-xadmin/build-indexes.sh15
1 files changed, 15 insertions, 0 deletions
diff --git a/admin/build-indexes.sh b/admin/build-indexes.sh
new file mode 100755
index 0000000..9dcbda7
--- /dev/null
+++ b/admin/build-indexes.sh
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -eu
+
+HERE=$(dirname "$0")
+ROOT=${HERE}/..
+
+for directory
+do
+ concert="${directory}"/concerts.in
+ index="${directory}"/index.html
+
+ PYTHONPATH="${ROOT}" \
+ "${HERE}"/update-index.py "${concert}" "${index}"
+done