diff --git a/Makefile b/Makefile index 67568e35a1..503f1fb27a 100644 --- a/Makefile +++ b/Makefile @@ -32,19 +32,13 @@ CURRENT_BRANCH=$(shell git branch --show-current) new_release: ## Release a new version of SuperDuperDB @ if [[ -z "${RELEASE_VERSION}" ]]; then echo "VERSION is not set"; exit 1; fi @ if [[ "$(RELEASE_VERSION)" == "$(CURRENT_RELEASE)" ]]; then echo "No new release version. Please update VERSION file."; exit 1; fi - # Update version in source code - @echo "** Change superduperdb/__init__.py to version $(RELEASE_VERSION)" - @sed -ie "s/^__version__ = .*/__version__ = '$(RELEASE_VERSION:v%=%)'/" superduperdb/__init__.py - @git add superduperdb/__init__.py - # Commit and tag release - @echo "** Commit Bump Version and Tags" - @git add VERSION CHANGELOG.md - @git commit -m "Bump Version $(RELEASE_VERSION)" - @git tag $(RELEASE_VERSION) - # Push branch and set upstream - git push --set-upstream origin $(CURRENT_BRANCH) - # Push the specific tag - git push origin $(RELEASE_VERSION) + sed -ie "s/^__version__ = .*/__version__ = '$(RELEASE_VERSION:v%=%)'/" superduperdb/__init__.py + git add superduperdb/__init__.py + git add VERSION CHANGELOG.md + -git commit -m "Bump Version $(RELEASE_VERSION)" + git tag $(RELEASE_VERSION) + git push --set-upstream origin $(CURRENT_BRANCH) -f + git push origin $(RELEASE_VERSION) -f install_devkit: ## Add essential development tools