[libjson-java] 23/26: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Oct 22 22:58:07 UTC 2015


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

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

commit 7a7bf2029c2ecf0b87efd4461f537551cdaa858e
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Oct 22 23:38:47 2015 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 7b64388..86e87f3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,5 +1,6 @@
 libjson-java (2.3-4) UNRELEASED; urgency=medium
 
+  * Use XZ compression for the upstream tarball
   * Moved the package to Git
 
  -- Emmanuel Bourg <ebourg at apache.org>  Thu, 22 Oct 2015 23:34:54 +0200
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index be213cf..e2540e0 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,18 +1,12 @@
 #!/bin/sh -e
 
 # called by uscan with '--upstream-version' <version> <file>
-DIR=json-lib-$2
-TAR=../libjson-java_$2.orig.tar.gz
+VERSION=$2
+DIR=json-lib-$VERSION
+TAR=../libjson-java_$VERSION.orig.tar.xz
 
 # clean up the upstream tarball
 mkdir $DIR
 (cd $DIR && jar xf ../$3)
-tar -c -z -f $TAR $DIR
+XZ_OPT=--best tar -c -J -v -f $TAR $DIR
 rm -rf $DIR $3
-
-# move to directory 'tarballs'
-if [ -r .svn/deb-layout ]; then
-    . .svn/deb-layout
-    mv $TAR $origDir
-    echo "moved $TAR to $origDir"
-fi

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



More information about the pkg-java-commits mailing list