mirror of https://github.com/docker/cli.git
Merge pull request #2888 from elboulangero/go-md2man-binary-name
Rename bin/md2man to bin/go-md2man
This commit is contained in:
commit
a2b9de35db
|
@ -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