diff options
Diffstat (limited to 'compile.sh')
| -rwxr-xr-x | compile.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/compile.sh b/compile.sh new file mode 100755 index 0000000..58c2968 --- /dev/null +++ b/compile.sh @@ -0,0 +1,15 @@ +#! /bin/bash + +md=`find . -name "*.md"` + +for file in $md; do + # build the page into an intermediate file, so when I reload in the browser, + # it's not a 50/50 whether the page is empty or not. + cat header.html > build.html + pandoc -f markdown -t html $file | iconv -f UTF-8 -t ASCII//TRANSLIT >> build.html + cat footer.html >> build.html + cp build.html `echo $file | sed s/\.md$/.html/` +done + +rm build.html + |
