[tomcat8] 06/06: Replaced dpkg-parsechangelog --show-field in debian/rules

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Feb 1 08:15:19 UTC 2017


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

ebourg-guest pushed a commit to annotated tag debian/8.5.11-1_bpo7+1
in repository tomcat8.

commit d1af2a184e28102cabf0c63235d7b19b8da588bb
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Jan 26 15:22:49 2017 +0100

    Replaced dpkg-parsechangelog --show-field in debian/rules
---
 debian/rules | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/debian/rules b/debian/rules
index 856a049..d1f71e3 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,13 +2,8 @@
 
 export JAVA_HOME := /usr/lib/jvm/java-7-openjdk-$(shell dpkg-architecture -qDEB_BUILD_ARCH)
 
-VERSION   := $(shell dpkg-parsechangelog --show-field Version | sed 's/-[^-]*$$//' | sed 's/~/-/')
-DATE      := $(shell dpkg-parsechangelog --show-field Date)
+VERSION := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ' | sed 's/-.*//')
 ANT       := ant -propertyfile debian/ant.properties \
-             -Dyear=$(shell date --date='$(DATE)' --utc +'%Y') \
-             -Dtoday='$(shell LC_ALL=C date --date='$(DATE)' --utc +'%b %-d %Y')' \
-             -Dtoday-iso-8601=$(shell date --date='$(DATE)' --utc +'%F') \
-             -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