[annotation-indexer] 03/11: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Sep 4 11:34:28 UTC 2014


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

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

commit 1acf3d6b62b8f4d96823c380a40071957fefc49e
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Wed Sep 3 16:37:23 2014 +0200

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

diff --git a/debian/changelog b/debian/changelog
index 0332e54..72e18a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -4,6 +4,7 @@ annotation-indexer (1.3-2) UNRELEASED; urgency=medium
   * debian/control:
     - Standards-Version updated to 3.9.5 (no changes)
     - Use canonical URLs for the Vcs-* fields
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Wed, 03 Sep 2014 16:18:47 +0200
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 5d40f66..0469173 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,13 +1,18 @@
 #!/bin/sh -e
 
 VERSION=$2
-TAR=../annotation-indexer_$VERSION.orig.tar.gz
+TAR=../annotation-indexer_$VERSION.orig.tar.xz
 DIR=annotation-indexer-$VERSION
 mkdir -p $DIR
+
 # Expand the upstream tarball
-tar -xzf $TAR -C $DIR --strip-components=1
+tar -xzf ../$3 -C $DIR --strip-components=1
+rm ../$3
 # Repack excluding stuff we don't need
-GZIP=--best tar -c -z -f $TAR --exclude '*.jar' --exclude '*.class' \
-    --exclude 'CVS' --exclude '.svn' $DIR
+XZ_OPT=--best tar -v -c -J -f $TAR \
+    --exclude '*.jar' \
+    --exclude '*.class' \
+    --exclude 'CVS' \
+    --exclude '.svn' \
+    $DIR
 rm -rf $DIR
-

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



More information about the pkg-java-commits mailing list