[maven-invoker] 12/17: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Mon Jan 18 22:15:07 UTC 2016


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

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

commit 9a960d7552bee90d845e88f021967460419ec9a4
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Mon Jan 18 22:17:44 2016 +0100

    Use XZ compression for the upstream tarball
---
 debian/changelog   |  1 +
 debian/orig-tar.sh | 20 +++++++++-----------
 2 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index f655d73..17337e1 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ maven-invoker (2.1.1-2) UNRELEASED; urgency=medium
   * Removed the build dependency on libplexus-component-metadata-java
   * Standards-Version updated to 3.9.6 (no changes)
   * Moved the package to Git
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Mon, 18 Jan 2016 22:06:25 +0100
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 28a65b5..a94b3be 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,16 +1,14 @@
 #!/bin/sh -e
 
-TAR=../maven-invoker_$2.orig.tar.gz
-DIR=maven-invoker-$2
-TAG=$(echo maven-invoker-$2 | sed -e's,~,-,')
+
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
+
+TAG=$(echo maven-invoker-${VERSION} | sed -e's,~,-,')
 
 svn export http://svn.apache.org/repos/asf/maven/shared/tags/$TAG $DIR
-tar -c -z -f $TAR $DIR
-rm -rf $DIR ../$TAG
 
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-  . .svn/deb-layout
-  mv $TAR $origDir
-  echo "moved $TAR to $origDir"
-fi
+XZ_OPT=--best tar -c -J -v -f $TAR $DIR
+rm -rf $3 $DIR

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



More information about the pkg-java-commits mailing list