[Pkg-cmake-commits] [cmake] 06/10: Include pkg-info.mk instead of calling dpkg-parsechangelog.

Felix Geyer fgeyer at moszumanska.debian.org
Sat Jul 22 10:10:39 UTC 2017


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

fgeyer pushed a commit to branch master
in repository cmake.

commit a1c61232aa393761e20667e355c2f43579c769a9
Author: Felix Geyer <fgeyer at debian.org>
Date:   Thu Jul 20 21:58:52 2017 +0200

    Include pkg-info.mk instead of calling dpkg-parsechangelog.
---
 debian/rules | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/debian/rules b/debian/rules
index eaaf640..984fda7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,7 @@
 #!/usr/bin/make -f
 
+include /usr/share/dpkg/pkg-info.mk
+
 export DEB_CXXFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)
 export DEB_CFLAGS_MAINT_APPEND := $(shell dpkg-buildflags --get CPPFLAGS)
 export DEB_LDFLAGS_MAINT_APPEND := -Wl,--as-needed
@@ -9,8 +11,7 @@ ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
     BOOTSTRAP_PARALLEL = --parallel=$(NUMJOBS)
 endif
 
-LAST_CHANGE = $(shell dpkg-parsechangelog -S Date)
-BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
+BUILD_DATE = $(shell LC_ALL=C date -u "+%B %d, %Y" -d "@$(SOURCE_DATE_EPOCH)")
 
 
 BUILD_FLAGS_FILE = build-flags.cmake

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-cmake/cmake.git



More information about the Pkg-cmake-commits mailing list