#!/usr/local/bin/dash # concatenate html files & .plan then write to http root tin_img=tinman3.trans.compress.png cd ~/prep_html cp ~/.plan ~/.project store_plan_proj git add store_plan_proj git commit -m 'usual updates to plan & project' sed "s/TINMAN/$tin_img/g" top.tmpl > top.html sed "s/^Status:/Status (`date +%Y-%m-%d`):/" ~/.project > project.cooked cat top.html ~/.plan mid.html project.cooked end.html > ~/public_html/index.html if [ ! -e ~/public_html/$tin_img ]; then cp $tin_img ~/public_html; fi rm project.cooked top.html