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

Bas Couwenberg sebastic at debian.org
Sat Jul 1 12:18:31 UTC 2017


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

sebastic pushed a commit to branch master
in repository mkgmap-splitter.

commit 7ee240f94a86e984993798dc6b27f17103caf1f3
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date:   Sat Jul 1 14:17:10 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 5d022a0..6b3d041 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ mkgmap-splitter (0.0.0+svn583-1) UNRELEASED; urgency=medium
   * New upstream SVN snapshot.
   * Bump Standards-Version to 4.0.0, no changes.
   * Add autopkgtest to test installability.
+  * Use pkg-info.mk variables instead of dpkg-parsechangelog output.
 
  -- Bas Couwenberg <sebastic at debian.org>  Sat, 01 Jul 2017 13:58:57 +0200
 
diff --git a/debian/rules b/debian/rules
index 224507d..3e72217 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,7 +2,9 @@
 
 JAVA_HOME=/usr/lib/jvm/default-java
 
-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/mkgmap-splitter.git



More information about the Pkg-grass-devel mailing list