Files
heartwood/.github/workflows/build-man-pages.sh
T
Alexis Sellier af28a0ca07 docs: Add rad.1 manual page
This is a general guide to getting started on radicle, available as a
man page.

We also make sure that the page is built on release.
2023-07-20 10:54:05 +02:00

17 lines
262 B
Bash
Executable File

#!/bin/sh
set -e
if [ $# -lt 2 ]; then
echo "usage: $0 <output-dir> <input-file>..."
exit 1
fi
outdir="$1"
shift
for input in "$@"; do
echo "Building $input.."
asciidoctor --doctype manpage --backend manpage --destination-dir "$outdir" "$input"
done