mirror of https://github.com/docker/cli.git
Merge pull request #2962 from thaJeztah/20.10_backport_go_md2man_binary_name
[20.10 backport] Rename bin/md2man to bin/go-md2man
This commit is contained in:
commit
53c4602909
|
@ -18,5 +18,5 @@ for FILE in *.md; do
|
|||
continue
|
||||
fi
|
||||
mkdir -p "./man${num}"
|
||||
md2man -in "$FILE" -out "./man${num}/${name}"
|
||||
go-md2man -in "$FILE" -out "./man${num}/${name}"
|
||||
done
|
||||
|
|
|
@ -4,9 +4,9 @@ set -eu -o pipefail
|
|||
|
||||
mkdir -p ./man/man1
|
||||
|
||||
if ! command -v md2man &> /dev/null; then
|
||||
if ! command -v go-md2man &> /dev/null; then
|
||||
# yay, go install creates a binary named "v2" ¯\_(ツ)_/¯
|
||||
go build -o "/go/bin/md2man" ./vendor/github.com/cpuguy83/go-md2man/v2
|
||||
go build -o "/go/bin/go-md2man" ./vendor/github.com/cpuguy83/go-md2man/v2
|
||||
fi
|
||||
|
||||
# Generate man pages from cobra commands
|
||||
|
|
Loading…
Reference in New Issue