|
1 | 1 | .PHONY: coverage testclean ChangeLog RELEASE package package.xml docs
|
2 | 2 |
|
3 | 3 | DATE=`date +%Y-%m-%d--%H-%M-%S`
|
4 |
| -MONGODB_VERSION=`php -n -dextension=modules/mongodb.so -r 'echo MONGODB_VERSION;'` |
5 |
| -MONGODB_STABILITY=`php -n -dextension=modules/mongodb.so -r 'echo MONGODB_STABILITY;'` |
| 4 | +MONGODB_VERSION=$(shell php -n -dextension=modules/mongodb.so -r 'echo MONGODB_VERSION;') |
| 5 | +MONGODB_MINOR=$(shell echo $(MONGODB_VERSION) | cut -d. -f1,2) |
| 6 | +MONGODB_STABILITY=$(shell php -n -dextension=modules/mongodb.so -r 'echo MONGODB_STABILITY;') |
6 | 7 | LIB_PATH=vendor/mongodb/mongodb
|
7 | 8 | COMPOSER_ARGS=update --no-interaction --prefer-source
|
8 | 9 | PHPUNIT_ARGS=--process-isolation
|
@@ -128,20 +129,25 @@ release: test distcheck
|
128 | 129 | @echo " " make release-docs
|
129 | 130 | @echo "And don't forget to bump version in php_phongo.h"
|
130 | 131 |
|
131 |
| -package: ChangeLog RELEASE package.xml |
| 132 | +package: ChangeLog package.xml |
| 133 | + @git checkout RELEASE-$(MONGODB_MINOR) |
132 | 134 | pecl package package.xml
|
| 135 | + @cat RELEASE-$(MONGODB_MINOR) >> RELEASE-$(MONGODB_VERSION) |
| 136 | + @mv RELEASE-$(MONGODB_VERSION) RELEASE-$(MONGODB_MINOR) |
133 | 137 |
|
134 | 138 | docs:
|
135 | 139 | mkdocs build --clean
|
136 | 140 |
|
137 | 141 | release-docs: docs
|
138 | 142 | mkdocs gh-deploy --clean
|
139 | 143 |
|
140 |
| -package.xml: |
| 144 | +package.xml: RELEASE |
141 | 145 | php bin/prep-release.php $(MONGODB_VERSION)-$(MONGODB_STABILITY)
|
142 | 146 |
|
143 | 147 | RELEASE:
|
144 |
| - @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_VERSION) |
| 148 | + @echo "RELEASE $(MONGODB_VERSION)" >> RELEASE-$(MONGODB_VERSION) |
| 149 | + @echo "-------------" >> RELEASE-$(MONGODB_VERSION) |
| 150 | + @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_VERSION) |
145 | 151 |
|
146 | 152 | ChangeLog:
|
147 | 153 | @git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short > ChangeLog
|
|
0 commit comments