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

Bas Couwenberg sebastic at debian.org
Wed Sep 27 13:11:30 UTC 2017


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

sebastic pushed a commit to branch master
in repository libepsilon.

commit 13085cba829b904f114293b342dbc98c898c4ce1
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Wed Sep 27 15:10:28 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 62f6b4a..73660a0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+libepsilon (0.9.2+dfsg-3) UNRELEASED; urgency=medium
+
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
+
+ -- Bas Couwenberg <sebastic at debian.org>  Wed, 27 Sep 2017 15:10:10 +0200
+
 libepsilon (0.9.2+dfsg-2) unstable; urgency=medium
 
   * Bump Standards-Version to 3.9.8, no changes.
diff --git a/debian/rules b/debian/rules
index 819bd90..31afce6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,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/libepsilon.git



More information about the Pkg-grass-devel mailing list