diff options
-rwxr-xr-x | build.sh | 4 | ||||
-rw-r--r-- | build_html.py | 2 | ||||
-rwxr-xr-x | publicize.sh | 7 |
3 files changed, 10 insertions, 3 deletions
@@ -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/ + |