Commit 6bb143c2 authored by Jeremy Mikola's avatar Jeremy Mikola

Use dynamic release/VERSION make target

parent 264a911b
.PHONY: apigen composer test docs mkdocs
MONGODB_LIB_VERSION=`php -r 'require "src/Collection.php"; echo MongoDB\Collection::VERSION, "\n";'`
COMPOSER_ARGS=update --no-interaction --prefer-source
PHPUNIT_ARGS=--process-isolation
......@@ -54,15 +53,13 @@ docs-api: apigen
docs: mkdocs
release: test RELEASE
release/%: release-log/%
@echo "Please run:"
@echo " " git add RELEASE-$(MONGODB_LIB_VERSION)
@echo " " git commit -m \"Add $(MONGODB_LIB_VERSION) release notes\"
@echo " " git tag -a -m \"Release MongoDB library $(MONGODB_LIB_VERSION)\" $(MONGODB_LIB_VERSION)
@echo " " git push --tags
@echo " " make release-docs
@echo "And don't forget to bump version in src/Collection.php"
@echo " " git add RELEASE-$(*)
@echo " " git commit -m \"Add $(*) release notes\"
@echo " " git tag -a -m \"Release MongoDB library $(*)\" $(*)
@echo " " git push --tags
@echo " " make release-docs
docs:
mkdocs build --clean
......@@ -70,6 +67,5 @@ docs:
release-docs: docs
mkdocs gh-deploy --clean
RELEASE:
@git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short --since="$$(git show -s --format=%ad `git rev-list --tags --max-count=1`)" > RELEASE-$(MONGODB_LIB_VERSION)
release-log/%:
@git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short --since="$$(git show -s --format=%ad `git rev-list --tags --max-count=1`)" > RELEASE-$(*)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment