From a497d600c7577faca0bf8f8e8eadb22ea8cb63ff Mon Sep 17 00:00:00 2001 From: Robert Burger Date: Sat, 30 Nov 2024 09:26:43 +0100 Subject: [PATCH] fix: version number into project.properties --- debian/rules | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/debian/rules b/debian/rules index d046adf..b18d656 100755 --- a/debian/rules +++ b/debian/rules @@ -13,6 +13,14 @@ export DH_VERBOSE = 1 # package maintainers to append LDFLAGS #export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed +export GIT_VERSION = $(shell git describe --long --dirty --tags | awk -F- '{ print $$1 }') + +override_dh_autoreconf: + sed 's/VERSION.*/VERSION = ${GIT_VERSION}/' -i project.properties + dh_autoreconf + +%: + dh $@ %: dh $@