[nik4] 01/03: Use pkg-info.mk variables instead of dpkg-parsechangelog output.

Bas Couwenberg sebastic at debian.org
Wed Sep 27 13:19:09 UTC 2017


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

sebastic pushed a commit to branch master
in repository nik4.

commit 1ca3e62ec8e74cbf82f0ed21aa278d7eb8844669
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Sep 27 15:18:37 2017 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 07c0831..f2cb5e6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+nik4 (1.6-2) UNRELEASED; urgency=medium
+
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 27 Sep 2017 15:18:15 +0200
+
 nik4 (1.6-1) unstable; urgency=medium
 
   * New upstream release.
diff --git a/debian/rules b/debian/rules
index 3fc9984..94de093 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,9 @@
 
 # DH_VERBOSE := 1
 
-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/nik4.git



More information about the Pkg-grass-devel mailing list