[libjibx1.2-java] 22/33: Use XZ compression for the upstream tarball

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Tue Feb 2 10:27:16 UTC 2016


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

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

commit 52e55bf0a07465334660f00111c93c81ce47763e
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Tue Feb 2 10:22:56 2016 +0100

    Use XZ compression for the upstream tarball
---
 debian/changelog        |  1 +
 debian/orig-tar.exclude |  3 ---
 debian/orig-tar.sh      | 15 +++++++++++----
 3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 6685b32..f667d4e 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 libjibx1.2-java (1.2.3-5) UNRELEASED; urgency=medium
 
   * Moved the package to Git
+  * Use XZ compression for the upstream tarball
 
  -- Emmanuel Bourg <ebourg at apache.org>  Tue, 02 Feb 2016 10:08:26 +0100
 
diff --git a/debian/orig-tar.exclude b/debian/orig-tar.exclude
deleted file mode 100644
index c306e76..0000000
--- a/debian/orig-tar.exclude
+++ /dev/null
@@ -1,3 +0,0 @@
-build/api
-build/classes
-lib/*.jar
diff --git a/debian/orig-tar.sh b/debian/orig-tar.sh
index 360181e..f0798e9 100755
--- a/debian/orig-tar.sh
+++ b/debian/orig-tar.sh
@@ -1,11 +1,18 @@
 #!/bin/sh -e
 
 # called by uscan with '--upstream-version' <version> <file>
-DIR=libjibx1.2-java-$2
-TAR=../libjibx1.2-java_$2.orig.tar.gz
+PACKAGE=$(dpkg-parsechangelog -S Source)
+VERSION=$2
+DIR=${PACKAGE}-${VERSION}
+TAR=../${PACKAGE}_${VERSION}.orig.tar.xz
 
 # clean up the upstream tarball
 unzip $3
+rm $3
 mv jibx $DIR
-GZIP=--best tar czf $TAR -X debian/orig-tar.exclude $DIR
-rm -rf $DIR $3
+XZ_OPT=--best tar -c -v -J -f $TAR \
+    --exclude 'docs/api' \
+    --exclude 'build/classes' \
+    --exclude 'lib/*.jar' \
+    $DIR
+rm -rf $DIR

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



More information about the pkg-java-commits mailing list