From 8a0ee394b84dfeac3d7b7cce7d88f7e595b82b69 Mon Sep 17 00:00:00 2001 From: Axel Beckert Date: Tue, 24 Oct 2017 22:11:58 +0200 Subject: [PATCH] Debian: Use pkg-info.mk instead of parsing debian/changelog --- debian/changelog | 1 + debian/rules | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/debian/changelog b/debian/changelog index 67ed3aa..3f80a0b 100644 --- a/debian/changelog +++ b/debian/changelog @@ -2,6 +2,7 @@ conkeror (1.0.3+git170508-1) UNRELEASED; urgency=medium * New upstream snapshot. * Restrict dependencies on Firefox variants to versions below 57. + * debian/rules: Use pkg-info.mk instead of parsing debian/changelog. -- Axel Beckert Tue, 24 Oct 2017 22:01:20 +0200 diff --git a/debian/rules b/debian/rules index dc2c927..572f58b 100755 --- a/debian/rules +++ b/debian/rules @@ -4,9 +4,8 @@ #export DH_VERBOSE=1 # Generating a xulrunner build id and other strings -DEBIAN_VERSION := $(shell echo -n `head -1 debian/changelog | sed -e 's/^.*(\(.*\)).*$$/\\1/'`) -DATE := $(shell dpkg-parsechangelog | awk -F ': ' '$$1=="Date" {print $$2}') -BUILDID := debian@$(DEBIAN_VERSION)_$(shell date -d "$(DATE)" +%s) +include /usr/share/dpkg/pkg-info.mk +BUILDID := debian@$(DEBIAN_VERSION)_$(SOURCE_DATE_EPOCH) US = $(CURDIR)/debian/tmp/usr/share USC = $(US)/conkeror -- 2.11.4.GIT