[maven2] 04/87: Version number

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Fri Feb 27 13:59:04 UTC 2015


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

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

commit 308447c90d1c465d8f4a64de8d8147d3151267ed
Author: Paul Cager <paul-debian at home.paulcager.org>
Date:   Wed Jun 6 09:45:18 2007 +0000

    Version number
---
 debian/rules | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/debian/rules b/debian/rules
index 1d8be39..15f4486 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ include /usr/share/cdbs/1/class/ant.mk
 include /usr/share/cdbs/1/rules/simple-patchsys.mk
 
 PACKAGE              := $(shell dpkg-parsechangelog | egrep '^Source:' | cut -f2 -d' ')
-VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | sed 's/Version: \(.*\)-.*/\1/')
+VERSION              := $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f2 -d' ' | sed 's/-[0-9\.]*$$//')
 JAVA_HOME            := /usr/lib/jvm/java-gcj
 ANT_HOME             := /usr/share/ant
 DEB_JARS             := $(ANT_HOME)/lib/ant-launcher.jar $(ANT_HOME)/lib/ant-trax.jar \
@@ -28,8 +28,8 @@ get-orig-source:
 	echo "Getting version $(VERSION) from $(SVN)"
 	mkdir orig_tmp
 	cd orig_tmp && \
-		svn export -q $(SVN) $(PACKAGE) && \
-		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz $(PACKAGE)
+		svn export -q $(SVN) maven && \
+		tar czf ../../$(PACKAGE)_$(VERSION).orig.tar.gz maven
 	rm -rf orig_tmp
 
 binary-post-install/$(PACKAGE)::

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



More information about the pkg-java-commits mailing list