Blob
1 #!/bin/sh2 #3 # usage: mdoc2html.sh src out4 #5 # converts the manpage `src' to the HTML file `out', tweaking the6 # style8 set -e10 : ${1:?missing input file}11 : ${2:?missing output file}13 man -Thtml -l "$1" > "$2"15 exec ed "$2" <<EOF16 /<style>17 a18 body {19 max-width: 960px;20 margin: 0 auto;21 padding: 0 10px;22 font-size: 1rem;23 }25 pre {26 overflow: auto;27 }28 .29 wq30 EOF