[tomcat8] 15/16: Replaced the date in ServerInfo.properties with the latest date in debian/changelog

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu May 7 13:08:05 UTC 2015


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

ebourg-guest pushed a commit to branch master
in repository tomcat8.

commit 43cbcb10050e5d0074f4e5263a3d0d1f8b899482
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu May 7 14:06:01 2015 +0200

    Replaced the date in ServerInfo.properties with the latest date in debian/changelog
---
 debian/changelog | 2 ++
 debian/rules     | 3 +++
 2 files changed, 5 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 7c54a07..af93ccd 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 tomcat8 (8.0.22-2) UNRELEASED; urgency=medium
 
+  * Replaced the date in ServerInfo.properties with the latest date
+    in debian/changelog to make the build reproducible
   * debian/rules:
     - Modified to use the dh sequencer
     - Simplified the ant invocation and moved some properties
diff --git a/debian/rules b/debian/rules
index c050128..9474099 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,7 +4,10 @@ JAVA_HOME := /usr/lib/jvm/default-java
 
 BLDLIB    := output/build/lib
 VERSION   := $(shell dpkg-parsechangelog --show-field Version | sed 's/-[^-]*$$//' | sed 's/~/-/')
+DATE      := $(shell dpkg-parsechangelog --show-field Date)
 ANT       := ant -propertyfile debian/ant.properties \
+             -Dtoday='$(shell date --date='$(DATE)' --utc +'%b %-d %Y')' \
+             -Dtstamp=$(shell date --date='$(DATE)' --utc +%H:%M:%S) \
              -Ddistribution.name=$(shell lsb_release -si)
 
 %:

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



More information about the pkg-java-commits mailing list