Markdown source build system

This commit is contained in:
Ian Gulliver
2019-04-14 22:40:18 +00:00
parent d636349411
commit 22b83149aa
2 changed files with 22 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
<!--# set var="title" value="Reboot" -->
<!--# set var="date" value="April 14, 2019" -->
<!--# include file="include/top.html" -->
Previous generations of "where the flamingcow roams" have existed on Blogger and Medium, but have been dormant for some time. Tired of my posts there being "decorated" by the hosting provider without approval and inspired by [Fabien Sanglard](https://fabiensanglard.net/bloated/index.html), I'm rebooting here.
Posts prior to this one are copied from Blogger or Medium. Forgive me for all their historical naiveté. Posts after this are new here, and I'm sure will look equally silly in ten years.
<!--# include file="include/bottom.html" -->

12
markdown/build-html.sh Executable file
View File

@@ -0,0 +1,12 @@
#!/bin/bash -e
BASEDIR=$(dirname $0)
for FILE in $BASEDIR/*.md; do
BASENAME=$(basename $FILE)
OUTNAME=${BASENAME%.md}.html
echo "$BASENAME -> $OUTNAME"
TEMP=$(tempfile --dir=$BASEDIR)
markdown $FILE > $TEMP
mv $TEMP $BASEDIR/../$OUTNAME
done