From 22b83149aa04c7dc27c3b550fd8332c5a1612782 Mon Sep 17 00:00:00 2001 From: Ian Gulliver Date: Sun, 14 Apr 2019 22:40:18 +0000 Subject: [PATCH] Markdown source build system --- markdown/2019-04-14-reboot.md | 10 ++++++++++ markdown/build-html.sh | 12 ++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 markdown/2019-04-14-reboot.md create mode 100755 markdown/build-html.sh diff --git a/markdown/2019-04-14-reboot.md b/markdown/2019-04-14-reboot.md new file mode 100644 index 0000000..1fdfd59 --- /dev/null +++ b/markdown/2019-04-14-reboot.md @@ -0,0 +1,10 @@ + + + + + +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. + + diff --git a/markdown/build-html.sh b/markdown/build-html.sh new file mode 100755 index 0000000..6177cd8 --- /dev/null +++ b/markdown/build-html.sh @@ -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