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 $@