diff options
author | Blaise Thompson <blaise@untzag.com> | 2021-07-05 22:28:25 -0500 |
---|---|---|
committer | Blaise Thompson <blaise@untzag.com> | 2021-07-05 22:28:25 -0500 |
commit | ba52f5d4a24cdc58a4835d53922c8f3aa693b792 (patch) | |
tree | 5a4e3744ef07f328546812c277fac9370a47c20d | |
parent | b43db726af5e87e7e483b5174d3d878203b4df6a (diff) |
new publicize
-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/ + |