about summary refs log tree commit diff stats
path: root/update.sh
diff options
context:
space:
mode:
authorNeil Ray <ray@tilde.institute>2020-08-27 18:37:21 -0400
committerNeil Ray <ray@tilde.institute>2020-08-27 18:37:21 -0400
commit6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4 (patch)
treea5b9d7f7f3784874b4f39f0c1671e49d055144a0 /update.sh
parente4938e71054ecf26fdd0f4d8c18587285a06f5cc (diff)
downloadprep_html-6e5fcc079c7d9860ad2121cf8b3a660cfb1873e4.tar.gz
stable, end of July 2020, works well
Diffstat (limited to 'update.sh')
-rwxr-xr-xupdate.sh11
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
 
> 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164