| git.druid.rocks | index | druid520 | mp | mk/ | dm.sh |
mk/dm.sh
set -e
# renders docs/*.btft into docs/man/ as troff man pages -- no
# style.btfs needed, a man page has no concept of a stylesheet.
docsdir="docs"
btf2man="${BTF2MAN:-btf2man}"
command -v "$btf2man" >/dev/null 2>&1 || { echo "err: $btf2man not found on \$PATH (see git://git.druid.rocks/druid520/btf.git)." >&2; exit 1; }
rm -rf "$docsdir/man"
mkdir -p "$docsdir/man"
"$btf2man" -o "$docsdir/man" "$docsdir"