Commit 9e5c352e authored by Brenden Blanco's avatar Brenden Blanco

Support versioning out of git tree in debuild

This adds support for properly tagging the build when cmake is run not
in a git tree, which is the case when building from src-deb.
Signed-off-by: default avatarBrenden Blanco <bblanco@plumgrid.com>
parent bd8fea4f
......@@ -4,5 +4,12 @@
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
DEBIAN_VERSION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: (.*),\1,p")
DEBIAN_REVISION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\3,p")
UPSTREAM_VERSION := $(shell dpkg-parsechangelog | sed -rne "s,^Version: ([0-9.]+)(~|-)(.*),\1,p")
%:
dh $@ --buildsystem=cmake --parallel
override_dh_auto_configure:
dh_auto_configure -- -DREVISION=$(UPSTREAM_VERSION)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment