[libparse-debianchangelog-perl] 01/02: debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.

gregor herrmann gregoa at debian.org
Thu Aug 3 21:04:32 UTC 2017


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

gregoa pushed a commit to branch master
in repository libparse-debianchangelog-perl.

commit e4a6b2089ccb1399c557ecbe970fbecb7f9096bd
Author: gregor herrmann <gregoa at debian.org>
Date:   Thu Aug 3 17:04:19 2017 -0400

    debian/rules: replace dpkg-parsechangelog call with /usr/share/dpkg/pkg-info.mk.
---
 debian/rules | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index dd3b088..032a63e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,6 +1,8 @@
 #!/usr/bin/make -f
 
-export PO_BUILD_DATE = $(shell date --utc -d "`dpkg-parsechangelog --show-field Date`" \
+# for SOURCE_DATE_EPOCH
+include /usr/share/dpkg/pkg-info.mk
+export PO_BUILD_DATE = $(shell date --utc -d "@${SOURCE_DATE_EPOCH}" \
 	                               '+%F %T')
 export TZ=UTC
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libparse-debianchangelog-perl.git



More information about the Pkg-perl-cvs-commits mailing list