[osm2pgrouting] 01/03: Use pkg-info.mk variables instead of dpkg-parsechangelog output.
Bas Couwenberg
sebastic at debian.org
Wed Sep 27 13:23:27 UTC 2017
This is an automated email from the git hooks/post-receive script.
sebastic pushed a commit to branch master
in repository osm2pgrouting.
commit 93c3918455b0dc513af1d13242c210e609f1a859
Author: Bas Couwenberg <sebastic at xs4all.nl>
Date: Wed Sep 27 15:22:25 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 5617e84..26c6add 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+osm2pgrouting (2.2.0-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:22:12 +0200
+
osm2pgrouting (2.2.0-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/rules b/debian/rules
index 4622329..410c1fd 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/osm2pgrouting.git
More information about the Pkg-grass-devel
mailing list