[gettext-ant-tasks] 07/12: Use XZ compression for the upstream tarball

Markus Koschany apo-guest at moszumanska.debian.org
Fri Dec 6 09:23:21 UTC 2013


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

apo-guest pushed a commit to branch master
in repository gettext-ant-tasks.

commit aae3618e8b07295a3fecee8eb917e356fbe10d30
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Oct 2 16:39:03 2013 +0200

    Use XZ compression for the upstream tarball
---
 debian/changelog |  1 +
 debian/rules     | 15 ++++++---------
 2 files changed, 7 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 56a60a3..fb73267 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,7 @@ gettext-ant-tasks (0.9.7~svn203-3) UNRELEASED; urgency=low
   * Use canonicals URLs for the Vcs-* fields
   * debian/copyright: Updated to the Copyright Format 1.0
   * Updated debian/watch (contributed by Bart Martens)
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Wed, 02 Oct 2013 15:36:46 +0200
 
diff --git a/debian/rules b/debian/rules
index 046f10a..4e9524d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -8,7 +8,10 @@ export JAVA_HOME=/usr/lib/jvm/default-java
 
 FULLVER := $(shell dpkg-parsechangelog | grep ^Version | cut -d\  -f2 | cut -d- -f1 )
 UPVER   := $(shell echo $(FULLVER) | cut -d~ -f1 )
-SVNREV  := $(shell echo $(FULLVER) | awk -F"~svn" '{print $$2}' )
+SVNREV  := $(shell echo $(FULLVER) | awk -F"[~+]svn" '{print $$2}' )
+
+%:
+	dh --with javahelper $@
 
 override_dh_auto_build:
 	ant compile
@@ -20,13 +23,7 @@ override_dh_auto_clean:
 	rm -rf target *.jar
 
 get-orig-source:
-	svn -r $(SVNREV) checkout \
-		http://gettext-commons.googlecode.com/svn/gettext-ant-tasks/trunk \
-		gettext-ant-tasks
-	find gettext-ant-tasks -type d -name ".svn" | xargs rm -rf
-	tar zcf gettext-ant-tasks_$(FULLVER).orig.tar.gz \
-		gettext-ant-tasks/
+	svn export -r $(SVNREV) http://gettext-commons.googlecode.com/svn/gettext-ant-tasks/trunk gettext-ant-tasks
+	tar Jcf gettext-ant-tasks_$(FULLVER).orig.tar.xz gettext-ant-tasks/
 	rm -rf gettext-ant-tasks/
 
-%:
-	dh --with javahelper $@

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



More information about the pkg-java-commits mailing list