generate() {
vim -f +"syn on" +"colorscheme scite" +'so \$VIMRUNTIME/syntax/2html.vim' +"wq" +"q" $1
}
prune() {
gawk 'BEGIN{ print "
" }
NR < 8 { next}
/<\/body>/,/<\/html>/ {next}
{gsub(/\#808080/,"black")
print $0}
END {print "
"}' $1.html
}
worker() {
generate $1
prune $1 > doc/html/$1.html
rm $1.html
}
worker shrc
worker gawkrc
worker minerc