3 # Crude script to convert plain READMEs to HTML
5 echo '<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN"
6 "http://www.w3.org/TR/html4/loose.dtd">
12 <title>Title Here</title>
14 <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
27 /^====+$/ { print "<h2>" line "</h2>"; line = ""; getline; next }
28 NF == 0 { print line; print $0; print "<p>"; line = $0; next }
29 { print line; line = $0 }