Skip to content

Commit 6023f67

Browse files
author
Kyle Kloberdanz
committed
(Debian packaging) set VERSION_CURRENT before build
1 parent ec532de commit 6023f67

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

debian/rules

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ endif
3333

3434
override_dh_auto_configure:
3535
[ "$(DOCS)" = "ON" ] || echo "Found 'nodoc' in 'DEB_BUILD_OPTIONS'; not building documentation"
36+
echo $(DEB_VERSION_UPSTREAM) > VERSION_CURRENT
3637
dh_auto_configure -- \
37-
-DBUILD_VERSION=$(DEB_VERSION_UPSTREAM) \
3838
-DENABLE_AUTOMATIC_INIT_AND_CLEANUP=OFF \
3939
-DENABLE_MONGOC=ON \
4040
-DENABLE_MAN_PAGES=$(DOCS) \
@@ -44,6 +44,10 @@ override_dh_auto_configure:
4444
-DENABLE_ZLIB=SYSTEM \
4545
-DUSE_BUNDLED_UTF8PROC=OFF
4646

47+
override_dh_auto_clean:
48+
rm -f VERSION_CURRENT
49+
dh_auto_clean
50+
4751
override_dh_auto_install:
4852
dh_auto_install
4953
find $(CURDIR)/debian/tmp/usr/include -type f -name "*.h" -print0 | \

0 commit comments

Comments
 (0)