From ba52f5d4a24cdc58a4835d53922c8f3aa693b792 Mon Sep 17 00:00:00 2001 From: Blaise Thompson Date: Mon, 5 Jul 2021 22:28:25 -0500 Subject: new publicize --- build.sh | 4 ++-- build_html.py | 2 ++ publicize.sh | 7 ++++++- 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/ + -- cgit v1.2.3