#!/bin/sh set -eu readonly GitURL='https://git.causal.agency/src/tree/bin' man=$1 shift title=${man##*/} title=${title%.[1-9]} cat < ${title} EOF opts=fragment [ "${man}" = "README.7" ] && opts=${opts},man=%N.html mandoc -T html -O ${opts} "${man}" for src; do cat <<-EOF

${src} in git EOF ./htagml -x -f htmltags "${src}" ./hilex -t -f html "${src}" | ./htagml -ip -f htmltags "${src}" done