mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 06:10:23 -04:00
15 lines
369 B
Bash
Executable file
15 lines
369 B
Bash
Executable file
#!/usr/bin/env bash
|
|
# Generate man pages for docker/cli
|
|
set -eu -o pipefail
|
|
|
|
mkdir -p ./man/man1
|
|
|
|
go install ./vendor/github.com/cpuguy83/go-md2man
|
|
|
|
# Generate man pages from cobra commands
|
|
go build -o /tmp/gen-manpages github.com/docker/cli/man
|
|
/tmp/gen-manpages --root "$(pwd)" --target "$(pwd)/man/man1"
|
|
|
|
# Generate legacy pages from markdown
|
|
./man/md2man-all.sh -q
|