mirror of
https://github.com/goreleaser/nfpm
synced 2024-09-30 01:22:39 +02:00
c33782561a
Signed-off-by: Carlos A Becker <caarlos0@gmail.com>
24 lines
381 B
Bash
Executable File
24 lines
381 B
Bash
Executable File
#!/bin/sh
|
|
set -e
|
|
|
|
SED="sed"
|
|
if which gsed >/dev/null 2>&1; then
|
|
SED="gsed"
|
|
fi
|
|
|
|
rm -rf www/docs/cmd/*.md
|
|
|
|
git checkout -- go.*
|
|
go mod tidy
|
|
go run ./cmd/nfpm docs
|
|
go run ./cmd/nfpm schema -o ./www/docs/static/schema.json
|
|
|
|
"$SED" \
|
|
-i'' \
|
|
-e 's/SEE ALSO/See also/g' \
|
|
-e 's/^## /# /g' \
|
|
-e 's/^### /## /g' \
|
|
-e 's/^#### /### /g' \
|
|
-e 's/^##### /#### /g' \
|
|
./www/docs/cmd/*.md
|