compilesite.sh (422B)
1 #!/bin/sh 2 #make html/style.css 3 j="" 4 if test "$1" == "quick"; then j="${j} -Q"; fi 5 6 (cd src; find html -type f)|grep -E '\.(hmd|md)$'|sed -E 's/\.(hmd|md)$//g'|sort|uniq|while read i; do 7 if test ! -e src/$i.hmd; then 8 ussg-page $j -N -HM headers markdown src/$i.md $i.html 9 else 10 # prefer HMD if it exists 11 ussg-page $j -HM headers markdown src/$i.hmd $i.html 12 fi 13 done 14 15 tar -Chtml -cf - . | tar -C/opt/www/html -xvvf -