mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
00a8a40398
Use the generate.sh script instead of md2man directly. Update Dockerfile for generating man pages. Signed-off-by: Daniel Nephin <dnephin@docker.com>
15 lines
254 B
Bash
Executable file
15 lines
254 B
Bash
Executable file
#!/bin/bash
|
|
#
|
|
# Generate man pages for docker/docker
|
|
#
|
|
|
|
set -eu
|
|
|
|
mkdir -p ./man/man1
|
|
|
|
# Generate man pages from cobra commands
|
|
go build -o /tmp/gen-manpages ./man
|
|
/tmp/gen-manpages ./man/man1
|
|
|
|
# Generate legacy pages from markdown
|
|
./man/md2man-all.sh -q
|