Merge pull request #2888 from elboulangero/go-md2man-binary-name

Rename bin/md2man to bin/go-md2man
This commit is contained in:
Silvin Lubecki 2021-01-08 14:47:16 +01:00 committed by GitHub
commit a2b9de35db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -18,5 +18,5 @@ for FILE in *.md; do
continue continue
fi fi
mkdir -p "./man${num}" mkdir -p "./man${num}"
md2man -in "$FILE" -out "./man${num}/${name}" go-md2man -in "$FILE" -out "./man${num}/${name}"
done done

View File

@ -4,9 +4,9 @@ set -eu -o pipefail
mkdir -p ./man/man1 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" ¯\_(ツ)_/¯ # 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 fi
# Generate man pages from cobra commands # Generate man pages from cobra commands