#!/bin/sh # Creates HTML version of the wiki. echo "making HTML" rm -rf html mkdir html for f in *.md; do f2=$(echo "html/$f" | sed "s/\.md/.html/g") echo "LRS Wiki

based_wiki

main page
" > $f2 markdown $f | sed "s/\.md\"/.html\"/g" >> $f2 echo "

All content available under CC0 1.0 (public domain).

" >> $f2 done echo "Go to main page." >> html/index.html echo "done"