1 2 3 4 5 6
#!/usr/bin/env bash set -euo pipefail MANDIR="$HOME/.local/share/man/man1" mkdir -p "$MANDIR" go run ./man cp out/* "$MANDIR"