build: add changelogfmt target to format [GH-xxxx] references to links
This commit is contained in:
parent
7b2ef00d03
commit
23b057f46b
|
@ -9,6 +9,7 @@
|
||||||
/pkg
|
/pkg
|
||||||
Thumbs.db
|
Thumbs.db
|
||||||
bin/
|
bin/
|
||||||
|
changelog.tmp
|
||||||
exit-code
|
exit-code
|
||||||
ui/.bundle
|
ui/.bundle
|
||||||
ui/.sass-cache
|
ui/.sass-cache
|
||||||
|
|
|
@ -31,7 +31,7 @@ bin: tools
|
||||||
@GOTAGS='$(GOTAGS)' sh -c "'$(CURDIR)/scripts/build.sh'"
|
@GOTAGS='$(GOTAGS)' sh -c "'$(CURDIR)/scripts/build.sh'"
|
||||||
|
|
||||||
# dev creates binaries for testing locally - these are put into ./bin and $GOPATH
|
# dev creates binaries for testing locally - these are put into ./bin and $GOPATH
|
||||||
dev: vendorfmt dev-build
|
dev: changelogfmt vendorfmt dev-build
|
||||||
|
|
||||||
dev-build:
|
dev-build:
|
||||||
@echo "--> Building consul"
|
@echo "--> Building consul"
|
||||||
|
@ -45,6 +45,10 @@ vendorfmt:
|
||||||
test -x $(GOPATH)/bin/vendorfmt || go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
|
test -x $(GOPATH)/bin/vendorfmt || go get -u github.com/magiconair/vendorfmt/cmd/vendorfmt
|
||||||
vendorfmt
|
vendorfmt
|
||||||
|
|
||||||
|
changelogfmt:
|
||||||
|
@echo "--> Making [GH-xxxx] references clickable..."
|
||||||
|
@sed -E 's|([^\[])\[GH-([0-9]+)\]|\1[[GH-\2](https://github.com/hashicorp/consul/issues/\2)]|g' CHANGELOG.md > changelog.tmp && mv changelog.tmp CHANGELOG.md
|
||||||
|
|
||||||
# linux builds a linux package independent of the source platform
|
# linux builds a linux package independent of the source platform
|
||||||
linux:
|
linux:
|
||||||
mkdir -p pkg/linux_amd64/
|
mkdir -p pkg/linux_amd64/
|
||||||
|
|
Loading…
Reference in New Issue