[jenkins-xstream] 03/07: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Sat Sep 6 15:29:26 UTC 2014


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

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

commit 6b9590a5813686e65e8a4d75f90a8c12aa99a781
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Sep 5 22:58:03 2014 +0200

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

diff --git a/debian/changelog b/debian/changelog
index d50ca35..409da34 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ jenkins-xstream (1.4.4-jenkins-4-2) UNRELEASED; urgency=medium
     - Standards-Version updated to 3.9.5 (no changes)
     - Use canonical URLs for the Vcs-* fields
   * Switch to debhelper level 9
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Fri, 05 Sep 2014 17:32:27 +0200
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 590782a..2ecb10d 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,13 +1,19 @@
 #!/bin/sh -e
 
 VERSION=$2
-TAR=../jenkins-xstream_$VERSION.orig.tar.gz
+TAR=../jenkins-xstream_$VERSION.orig.tar.xz
 DIR=jenkins-xstream-$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 -c -J -v -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/jenkins-xstream.git



More information about the pkg-java-commits mailing list