[aspectj] 03/04: Improved the reproducibility by using the date of the changelog in Version.java
Emmanuel Bourg
ebourg-guest at moszumanska.debian.org
Wed Apr 29 20:17:33 UTC 2015
This is an automated email from the git hooks/post-receive script.
ebourg-guest pushed a commit to branch master
in repository aspectj.
commit 4caffe44e554624a9d4eb755698d377a083e0a4e
Author: Emmanuel Bourg <ebourg at apache.org>
Date: Wed Apr 29 22:13:58 2015 +0200
Improved the reproducibility by using the date of the changelog in Version.java
---
debian/changelog | 2 ++
debian/rules | 6 ++++++
2 files changed, 8 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index 9d2bbff..a550149 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,8 @@ aspectj (1.8.5-1) UNRELEASED; urgency=medium
* Team upload.
* New upstream release
- Removed the Java 8 compatibility patch (fixed upstream)
+ * Improved the reproducibility by using the date of the changelog
+ in Version.java
-- Emmanuel Bourg <ebourg at apache.org> Wed, 29 Apr 2015 18:36:07 +0200
diff --git a/debian/rules b/debian/rules
index c961a24..c21d36c 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,15 @@ include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/ant.mk
JAVA_HOME := /usr/lib/jvm/default-java
+
+# Inject the date from the changelog in Version.java
+DEB_CHANGELOG_DATETIME = $(shell dpkg-parsechangelog --show-field Date)
+DEB_CHANGELOG_DATE_FORMATTED = $(shell date '--date=$(DEB_CHANGELOG_DATETIME)' +'%A %b %d, %Y at %H:%M:%S %Z')
+
MODULES := .
DEB_BUILDDIR = $(MODULES)/build
DEB_ANT_BUILD_TARGET = aspectj
+DEB_ANT_ARGS = '-Dbuild.time=$(DEB_CHANGELOG_DATE_FORMATTED)'
DEB_JARS = xalan2 ant-junit
DEB_COMPRESS_EXCLUDE = .pdf .java .xml
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-java/aspectj.git
More information about the pkg-java-commits
mailing list