Skip to content

Commit db810ec

Browse files
committed
check for prerelease version with m4_ifset
1 parent a75f4c0 commit db810ec

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

build/autotools/Versions.m4

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
m4_define([mongoc_major_version], [1])
22
m4_define([mongoc_minor_version], [1])
33
m4_define([mongoc_micro_version], [5])
4-
54
m4_define([mongoc_prerelease_version], [dev])
65

7-
#m4_define([mongoc_version], [mongoc_major_version.mongoc_minor_version.mongoc_micro_version])
8-
m4_define([mongoc_version], [mongoc_major_version.mongoc_minor_version.mongoc_micro_version-mongoc_prerelease_version])
6+
m4_define(
7+
[mongoc_version],
8+
m4_ifset(
9+
[mongoc_prerelease_version],
10+
[mongoc_major_version.mongoc_minor_version.mongoc_micro_version-mongoc_prerelease_version],
11+
[mongoc_major_version.mongoc_minor_version.mongoc_micro_version]))
912

1013
# bump up by 1 for every micro release with no API changes, otherwise
1114
# set to 0. after release, bump up by 1

0 commit comments

Comments
 (0)