[hamradio-commits] [dump1090-mutability] 31/172: Use the package version as the version number compiled into the binary.

Matteo F. Vescovi mfv at moszumanska.debian.org
Sun Jan 28 13:45:43 UTC 2018


This is an automated email from the git hooks/post-receive script.

mfv pushed a commit to branch master
in repository dump1090-mutability.

commit ba4140777126b4030e2faeb176a33600d18febaa
Author: Oliver Jowett <oliver at mutability.co.uk>
Date:   Wed Dec 10 12:25:43 2014 +0000

    Use the package version as the version number compiled into the binary.
---
 debian/changelog | 1 +
 debian/rules     | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7229379..60ac286 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ dump1090-mutability (1.08.2302.14+1mu-3) UNRELEASED; urgency=medium
     the interval is disabled, it makes more sense that way.
   * Be much more cautious about missing config settings so we don't explode
     so badly if something is omitted.
+  * Use the package version as the version number compiled into the binary.
 
  -- Oliver Jowett <oliver at mutability.co.uk>  Wed, 10 Dec 2014 02:01:27 +0000
 
diff --git a/debian/rules b/debian/rules
index 2f3b1c6..8f04ea0 100755
--- a/debian/rules
+++ b/debian/rules
@@ -14,8 +14,10 @@ export DEB_BUILD_MAINT_OPTIONS = hardening=+all
 DPKG_EXPORT_BUILDFLAGS = 1
 include /usr/share/dpkg/buildflags.mk
 
+VER=$(shell dpkg-parsechangelog -SVersion)
+
 override_dh_auto_build:
-	dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\"'
+	dh_auto_build -- 'EXTRACFLAGS=-DHTMLPATH=\"/usr/share/dump1090-mutability/html\" -DMODES_DUMP1090_VERSION=\"$(VER)\"'
 
 override_dh_install:
 	dh_install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090-mutability.git



More information about the pkg-hamradio-commits mailing list