mirror of
https://github.com/varun-r-mallya/py-libp2p.git
synced 2025-12-31 20:36:24 +00:00
Merge pull request #47 from carver/bump-missing-error
Better error if bump missing in make notes/release
This commit is contained in:
9
Makefile
9
Makefile
@ -50,7 +50,12 @@ docs: build-docs
|
|||||||
linux-docs: build-docs
|
linux-docs: build-docs
|
||||||
xdg-open docs/_build/html/index.html
|
xdg-open docs/_build/html/index.html
|
||||||
|
|
||||||
notes:
|
check-bump:
|
||||||
|
ifndef bump
|
||||||
|
$(error bump must be set, typically: major, minor, patch, or devnum)
|
||||||
|
endif
|
||||||
|
|
||||||
|
notes: check-bump
|
||||||
# Let UPCOMING_VERSION be the version that is used for the current bump
|
# Let UPCOMING_VERSION be the version that is used for the current bump
|
||||||
$(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g'))
|
$(eval UPCOMING_VERSION=$(shell bumpversion $(bump) --dry-run --list | grep new_version= | sed 's/new_version=//g'))
|
||||||
# Now generate the release notes to have them included in the release commit
|
# Now generate the release notes to have them included in the release commit
|
||||||
@ -59,7 +64,7 @@ notes:
|
|||||||
make build-docs
|
make build-docs
|
||||||
git commit -m "Compile release notes"
|
git commit -m "Compile release notes"
|
||||||
|
|
||||||
release: clean
|
release: check-bump clean
|
||||||
# require that you be on a branch that's linked to upstream/master
|
# require that you be on a branch that's linked to upstream/master
|
||||||
git status -s -b | head -1 | grep "\.\.upstream/master"
|
git status -s -b | head -1 | grep "\.\.upstream/master"
|
||||||
# verify that docs build correctly
|
# verify that docs build correctly
|
||||||
|
|||||||
Reference in New Issue
Block a user