[thuban] 05/06: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Mon Jun 26 20:06:00 UTC 2017


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

sebastic pushed a commit to branch master
in repository thuban.

commit 7a4c7373da9472cacdcbac5084263e2505824564
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Mon Jun 26 21:53:53 2017 +0200

    Use pkg-info.mk variables instead of dpkg-parsechangelog output.
---
 debian/changelog | 1 +
 debian/rules     | 4 +++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index bd4f541..bd868d6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ thuban (1.2.2-12) UNRELEASED; urgency=medium
   * Bump Standards-Version to 4.0.0, no changes.
   * Add autopkgtest to test installability.
   * Enable PIE hardening buildflags.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Mon, 26 Jun 2017 19:35:18 +0200
 
diff --git a/debian/rules b/debian/rules
index 5cc9d23..d8cc440 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,7 +6,9 @@
 # Enable hardening build flags
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
-BUILD_DATE=$(shell dpkg-parsechangelog | sed -ne 's/^Date: //p' | LC_ALL=C date -u "+%d %B %Y" -f -)
+include /usr/share/dpkg/pkg-info.mk
+
+BUILD_DATE=$(shell LC_ALL=C date -u "+%d %B %Y" -d "@$(SOURCE_DATE_EPOCH)")
 
 MANPAGES:=$(wildcard debian/man/*.*.xml)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-grass/thuban.git



More information about the Pkg-grass-devel mailing list