[jenkins-remoting] 03/08: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Thu Sep 4 10:24:58 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-remoting.

commit 8794c4bbe2f418a48e350c9c8105abeaf173e74c
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Thu Sep 4 09:30:01 2014 +0200

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

diff --git a/debian/changelog b/debian/changelog
index f708288..50ca58b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -14,6 +14,7 @@ jenkins-remoting (2.32-1) UNRELEASED; urgency=medium
 
   [ Emmanuel Bourg ]
   * Switch to debhelper level 9
+  * Use XZ compression for the upstream tarball
 
  -- James Page <james.page at ubuntu.com>  Thu, 02 Jan 2014 13:15:28 +0000
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 02e069a..3c0b56c 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,15 +1,21 @@
 #/bin/sh -e
 
 VERSION=$2
-TAR=../jenkins-remoting_$VERSION.orig.tar.gz
+TAR=../jenkins-remoting_$VERSION.orig.tar.xz
 DIR=jenkins-remoting-$VERSION
 mkdir -p $DIR
 
 # Unpack ready fo re-packing
-tar -xzf $TAR -C $DIR --strip-components=1
+tar -xf ../$3 -C $DIR --strip-components=1
+rm ../$3
 
 # Repack excluding stuff we don't need
-GZIP=--best tar -czf $TAR --exclude '*.jar' --exclude '*.class' \
-    --exclude 'CVS' --exclude '.svn' --exclude 'dummy.keystore' $DIR
+XZ_OPT=--best tar -cJvf $TAR \
+    --exclude '*.jar' \
+    --exclude '*.class' \
+    --exclude 'CVS' \
+    --exclude '.svn' \
+    --exclude 'dummy.keystore' \
+    $DIR
 
 rm -rf $DIR

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



More information about the pkg-java-commits mailing list