diff options
author | Neil Ray <ray@tilde.institute> | 2020-08-27 18:37:21 -0400 |
---|---|---|
committer | Neil Ray <ray@tilde.institute> | 2020-08-27 18:37:21 -0400 |
commit | 6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4 (patch) | |
tree | a5b9d7f7f3784874b4f39f0c1671e49d055144a0 /update.sh | |
parent | e4938e71054ecf26fdd0f4d8c18587285a06f5cc (diff) | |
download | prep_html-6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4.tar.gz |
stable, end of July 2020, works well
Diffstat (limited to 'update.sh')
-rwxr-xr-x | update.sh | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/update.sh b/update.sh index 3afa373..1a48a1a 100755 --- a/update.sh +++ b/update.sh @@ -1,10 +1,13 @@ -#!/bin/sh +#!/usr/local/bin/dash # concatenate html files & .plan then write to http root -tin_img=tinman3.png +tin_img=tinman3.trans.cmpress.png cd ~/prep_html -cat top.html ~/.project mid.html ~/.plan end.html > ~/public_html/index.html -if [ -e ~/public_html/$tin_img ]; then cp $tin_img ~/public_html; fi +sed "s/TINMAN/$tin_img/g" top.tmpl > top.html +sed "s/^Status:/Status (`date +%Y-%m-%d`):/" ~/.plan > plan.cooked +cat top.html ~/.project mid.html plan.cooked end.html > ~/public_html/index.html +if [ ! -e ~/public_html/$tin_img ]; then cp $tin_img ~/public_html; fi +rm plan.cooked |