#!/bin/sh set -eu readonly GitURL='https://git.causal.agency/src/tree/bin' src=$1 man=${2:-} cat < ${src} EOF opts='fragment' [ "${man}" = "README.7" ] && opts="${opts},man=%N.html" mandoc -T html -O "${opts}" "${man}" cat < ${src} in git EOF ./htagml -p -f htmltags "${src}"