|
1 |
| -.PHONY: coverage testclean ChangeLog RELEASE package package.xml docs |
| 1 | +.PHONY: coverage testclean package package.xml docs |
2 | 2 |
|
3 | 3 | DATE=`date +%Y-%m-%d--%H-%M-%S`
|
4 | 4 | MONGODB_VERSION=$(shell php -n -dextension=modules/mongodb.so -r 'echo MONGODB_VERSION;')
|
@@ -29,11 +29,10 @@ help:
|
29 | 29 | @echo ""
|
30 | 30 | @echo -e "\t$$ make distcheck"
|
31 | 31 | @echo -e "\t - Builds the archive, runs the virtual tests"
|
32 |
| - @echo "" |
33 |
| - @echo -e "\t$$ make release" |
34 |
| - @echo -e "\t - Packages the archive, runs the tests locally and virtual" |
35 | 32 |
|
36 | 33 | @echo ""
|
| 34 | + @echo -e "\t$$ make package.xml" |
| 35 | + @echo -e "\t - Creates a package.xml file with empty release notes" |
37 | 36 | @echo -e "\t$$ make package"
|
38 | 37 | @echo -e "\t - Creates the pecl archive to use for provisioning"
|
39 | 38 | @echo -e "\t$$ make test-virtual"
|
@@ -112,44 +111,19 @@ testunit: composer
|
112 | 111 |
|
113 | 112 | testall: composer test testunit
|
114 | 113 |
|
115 |
| - |
116 | 114 | testclean:
|
117 | 115 | @for group in generic standalone; do \
|
118 | 116 | find $(top_srcdir)/tests/$$group -type f -name "*.diff" -o -name "*.exp" -o -name "*.log" -o -name "*.mem" -o -name "*.out" -o -name "*.php" -o -name "*.sh" | xargs rm -f; \
|
119 | 117 | done;
|
120 | 118 |
|
121 |
| -mongodbdep: |
122 |
| - |
123 |
| -release: test distcheck |
124 |
| - @echo "Please run:" |
125 |
| - @echo " " git add RELEASE-$(MONGODB_VERSION) |
126 |
| - @echo " " git commit -m \"Add $(MONGODB_VERSION) release notes\" |
127 |
| - @echo " " git tag -a -m \"Release $(MONGODB_VERSION)\" $(MONGODB_VERSION) |
128 |
| - @echo " " git push --tags |
129 |
| - @echo " " make release-docs |
130 |
| - @echo "And don't forget to bump version in php_phongo.h" |
131 |
| - |
132 |
| -package: ChangeLog package.xml |
133 |
| - @git checkout RELEASE-$(MONGODB_MINOR) |
| 119 | +package: |
134 | 120 | pecl package package.xml
|
135 |
| - @cat RELEASE-$(MONGODB_MINOR) >> RELEASE-$(MONGODB_VERSION) |
136 |
| - @mv RELEASE-$(MONGODB_VERSION) RELEASE-$(MONGODB_MINOR) |
137 | 121 |
|
138 | 122 | docs:
|
139 | 123 | mkdocs build --clean
|
140 | 124 |
|
141 | 125 | release-docs: docs
|
142 | 126 | mkdocs gh-deploy --clean
|
143 | 127 |
|
144 |
| -package.xml: RELEASE |
| 128 | +package.xml: |
145 | 129 | php bin/prep-release.php $(MONGODB_VERSION) $(MONGODB_STABILITY)
|
146 |
| - |
147 |
| -RELEASE: |
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" --no-merges --date short --since="$$(git show -s --format=%ad `git rev-list --tags --max-count=1`)" >> RELEASE-$(MONGODB_VERSION) |
151 |
| - @echo -e "\n" >> RELEASE-$(MONGODB_VERSION) |
152 |
| - |
153 |
| -ChangeLog: |
154 |
| - @git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short > ChangeLog |
155 |
| - |
0 commit comments