[tomcat7] 13/13: Replaced the date in ServerInfo.properties and in the documentation with the latest date in debian/changelog to make the build reproducible

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed May 27 09:36:53 UTC 2015


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

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

commit 6f86bd90fa57ddb1b5ccc0021329a85726581d4a
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed May 27 11:22:06 2015 +0200

    Replaced the date in ServerInfo.properties and in the documentation with the latest date in debian/changelog to make the build reproducible
---
 debian/changelog | 2 ++
 debian/rules     | 4 ++++
 2 files changed, 6 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index a73fee8..9d3579a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,7 @@
 tomcat7 (7.0.61-2) UNRELEASED; urgency=medium
 
+  * Replaced the date in ServerInfo.properties and in the documentation
+    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 42c7bd8..8e3710a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,7 +7,11 @@ BLDBIN    := output/build/bin
 VERSION   := $(shell dpkg-parsechangelog --show-field Version | sed 's/-[^-]*$$//' | sed 's/~/-/')
 T_JARS    := tomcat-i18n-fr tomcat-i18n-es tomcat-i18n-ja catalina-ant
 T_MAVENIZED_JARS := jasper-el annotations-api jasper catalina-ha catalina
+DATE      := $(shell dpkg-parsechangelog --show-field Date)
 ANT       := ant -propertyfile debian/ant.properties \
+             -Dyear=$(shell date --date='$(DATE)' --utc +'%Y') \
+             -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/tomcat7.git



More information about the pkg-java-commits mailing list