#!/bin/sh # Crude script to convert formatted manual pages to HTML while : do case $1 in -t) title=$2; shift; shift;; -*) echo "Usage: $0 [-t title] [file(s)]" 1>&2; exit 1;; *) break;; esac done echo "
" sed ' s/\([<>&]\)\1/\1/g s/&/\&/g s/_\</g s/<\</g s/\</g s/_>/\>/g s/>>/\>/g s/>/\>/g s;_\([^_]\);\1;g s;.\(.\);\1;g s;\( *\);\1;g s;\( *\);\1;g ' "$@" | egrep -v 'postconf (readme|html)_direc|tory" *to *locate *this' echo ''