[jcifs] 04/04: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Mar 31 15:13:06 UTC 2015


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

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

commit e6e23d90a19e5789dabc6d324013cabdc9496280
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Mar 31 17:12:43 2015 +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 7edef9d..ec102d0 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,7 @@ jcifs (1.3.17-1.1) UNRELEASED; urgency=medium
   [ Emmanuel Bourg ]
   * Build-Depends on libservlet3.1-java instead of libservlet3.0-java
   * Standards-Version updated to 3.9.6 (no changes)
+  * Use XZ compression for the upstream tarball
   * Moved the package to Git
   * Switch to debhelper level 9
 
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 3606080..b9d01d3 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,14 +1,20 @@
 #!/bin/sh -e
 
 # called by uscan with '--upstream-version' <version> <file>
-TAR=../jcifs-$2.tgz
-DIR=jcifs-$2.orig
+VERSION=$2
+TAR=../jcifs_$VERSION.orig.tar.xz
+DIR=jcifs-$VERSION
 
 # clean up the upstream tarball
-tar zxf $TAR
+mkdir $DIR
+tar --strip-components=1 --directory=$DIR -xf $3
 rm -f $3 $TAR
-mv jcifs_$2 $DIR
-GZIP=--best tar czf $3 --exclude docs/api --exclude *.jar --exclude *.class --exclude examples/Format.java $DIR
+XZ_OPT=--best tar cJvf $TAR \
+    --exclude 'docs/api' \
+    --exclude '*.jar' \
+    --exclude '*.class' \
+    --exclude 'examples/Format.java' \
+    $DIR
 rm -rf $DIR
 
 # move to directory 'tarballs'

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



More information about the pkg-java-commits mailing list