[maven-debian-helper] 02/05: Export the DEB_CHANGELOG_DATETIME variable with the date of the latest entry in debian/changelog
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Tue May 5 18:29:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository maven-debian-helper.
commit 868f0f50e497aca4a2cf2196b5548a319e4571ae
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Tue May 5 09:48:57 2015 +0200
Export the DEB_CHANGELOG_DATETIME variable with the date of the latest entry in debian/changelog
---
debian/changelog | 2 ++
share/cdbs/1/class/maven.mk | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 70df75e..1b73aaf 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,8 @@
maven-debian-helper (1.6.11) UNRELEASED; urgency=medium
* Removed the timestamp from the javadoc files to make the builds reproducible
+ * Export the DEB_CHANGELOG_DATETIME variable with the date of the latest entry
+ in debian/changelog
-- Emmanuel Bourg <ebourg at apache.org> Mon, 04 May 2015 17:39:56 +0200
diff --git a/share/cdbs/1/class/maven.mk b/share/cdbs/1/class/maven.mk
index baa9f29..08582a1 100644
--- a/share/cdbs/1/class/maven.mk
+++ b/share/cdbs/1/class/maven.mk
@@ -36,6 +36,12 @@ DEB_MAVEN_REPO := $(CURDIR)/debian/maven-repo
JAVA_OPTS = \
$(shell test -n "$(DEB_MAVEN_PROPERTYFILE)" && echo -Dproperties.file.manual=$(DEB_MAVEN_PROPERTYFILE))
+# Export the date of the latest entry in debian/changelog (used by maven-archiver to make reproducible builds)
+ifneq ("$(wildcard debian/changelog)","")
+ export DEB_CHANGELOG_DATETIME=$(shell dpkg-parsechangelog --show-field Date)
+ export DEB_CHANGELOG_TIMESTAMP=$(shell date '--date=$(DEB_CHANGELOG_DATETIME)' +%s)
+endif
+
DEB_PHONY_RULES += maven-sanity-check before-mvn-build mvn-build after-mvn-build patch-poms unpatch-poms
cdbs_use_maven_substvars := $(shell grep -q "{maven:\w*Depends}" debian/control && echo yes)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/maven-debian-helper.git
More information about the pkg-java-commits
mailing list