summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBlaise Thompson <blaise@untzag.com>2021-07-05 22:28:25 -0500
committerBlaise Thompson <blaise@untzag.com>2021-07-05 22:28:25 -0500
commitba52f5d4a24cdc58a4835d53922c8f3aa693b792 (patch)
tree5a4e3744ef07f328546812c277fac9370a47c20d
parentb43db726af5e87e7e483b5174d3d878203b4df6a (diff)
new publicize
-rwxr-xr-xbuild.sh4
-rw-r--r--build_html.py2
-rwxr-xr-xpublicize.sh7
3 files changed, 10 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 92e4338..7c74c36 100755
--- a/build.sh
+++ b/build.sh
@@ -1,2 +1,2 @@
-python3 /home/blaise/website/agenda/build_html.py
-/home/blaise/website/agenda/publicize.sh
+python3 /home/blaise/source/agenda/build_html.py
+/home/blaise/source/agenda/publicize.sh
diff --git a/build_html.py b/build_html.py
index fd577b8..d05f8cf 100644
--- a/build_html.py
+++ b/build_html.py
@@ -44,6 +44,8 @@ events = []
with open(org_fp, "r") as org:
for line in org:
line = line.strip()
+ if not line:
+ continue
if not line[0] == "*":
continue
if ":private:" in line:
diff --git a/publicize.sh b/publicize.sh
index 7bbd1e8..cac6bf7 100755
--- a/publicize.sh
+++ b/publicize.sh
@@ -1 +1,6 @@
-scp -r /home/blaise/website/agenda/public/* root@blaise.zone:/var/www/agenda.blaise.zone/html/
+#!/bin/bash
+cd "$(dirname "$0")"
+git pull
+python3 build.py
+cp -r ./public/* /var/www/agenda.blaise.zone/html/
+