mirror of
https://seed.radicle.dev/rad:z3gqcJUoA1n9HaHKufZs5FCSGazv5.git
synced 2026-10-18 19:10:30 +08:00
ci: Fix man page build
This commit is contained in:
Executable
+20
@@ -0,0 +1,20 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
main() {
|
||||
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
|
||||
}
|
||||
|
||||
main "$@"
|
||||
Reference in New Issue
Block a user