Skip to content

Commit 5ac7dbb

Browse files
committed
Get the release number from the module
1 parent 81677fb commit 5ac7dbb

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

Makefile.frag

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
.PHONY: coverage testclean ChangeLog RELEASE package.xml
22

33
DATE=`date +%Y-%m-%d--%H-%M-%S`
4+
PHONGO_VERSION=`php -n -dextension=modules/phongo.so -r 'echo PHONGO_VERSION;'`
5+
PHONGO_STABILITY=`php -n -dextension=modules/phongo.so -r 'echo PHONGO_STABILITY;'`
46

57
mv-coverage:
68
@if test -e $(top_srcdir)/coverage; then \
@@ -50,10 +52,10 @@ patch:
5052
fi
5153

5254
package.xml:
53-
php bin/prep-release.php 0.1.0-devel
55+
php bin/prep-release.php $(PHONGO_VERSION)-$(PHONGO_STABILITY)
5456

5557
RELEASE:
56-
@git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short > RELEASE-X.Y.Z
58+
@git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short > RELEASE-$(PHONGO_VERSION)
5759

5860
ChangeLog:
5961
@git log --pretty=format:"%ad %an <%ae>%n%x09* %s%n" --date short > ChangeLog

bin/prep-release.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ function get_files() {
6060
"config.m4",
6161
"Makefile.frag",
6262
"README*",
63+
"RELEASE*",
6364
"ChangeLog*",
6465
"src/*.{c,h}",
6566
"src/MongoDB/*.{c,h}",
@@ -170,7 +171,7 @@ function usage() {
170171

171172
verify_stability($STABILITY);
172173
verify_version($VERSION, $STABILITY);
173-
$changelog = __DIR__ . "/../ChangeLog-" . $VERSION;
174+
$changelog = __DIR__ . "/../ChangeLog";
174175
verify_changelog($changelog);
175176

176177

0 commit comments

Comments
 (0)