diff options
| author | iamcheeseman <[email protected]> | 2026-03-19 16:57:18 -0400 |
|---|---|---|
| committer | iamcheeseman <[email protected]> | 2026-03-19 16:57:18 -0400 |
| commit | 82edda96ef68a4e4d0695fe1e056b609fdd83074 (patch) | |
| tree | 5eef077fdbd15f109f625a5fd455df0d5fc9e363 /compile.sh | |
hello, world
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 + |
