[javatools] 03/08: jh_repack: Added support for xz compressed tarballs

Emmanuel Bourg ebourg-guest at moszumanska.debian.org
Wed Jul 27 08:35:13 UTC 2016


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

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

commit 2a250f274a388c11e3edf1ec0069d0d5e36d38f4
Author: Emmanuel Bourg <ebourg at apache.org>
Date:   Fri Jul 22 18:59:16 2016 +0200

    jh_repack: Added support for xz compressed tarballs
---
 debian/changelog | 1 +
 jh_repack        | 8 +++++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index 7138c76..b490615 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,7 @@ javatools (0.56) UNRELEASED; urgency=medium
 
   * Team upload.
   * jh_depend: Added support for Java 8
+  * jh_repack: Added support for xz compressed tarballs
 
  -- Emmanuel Bourg <ebourg at apache.org>  Fri, 22 Jul 2016 19:00:43 +0200
 
diff --git a/jh_repack b/jh_repack
index ca9bb41..50729b4 100755
--- a/jh_repack
+++ b/jh_repack
@@ -45,11 +45,14 @@ if grep tar.gz$ <<< $TARBALL &>/dev/null; then
 elif grep tar.bz2$ <<< $TARBALL &>/dev/null; then
 	TYPE=bzip2
 	tar jxf "$TARBALL"
+elif grep tar.xz$ <<< $TARBALL &>/dev/null; then
+	TYPE=xz
+	tar Jxf "$TARBALL"
 elif grep zip$ <<< $TARBALL &>/dev/null; then
 	TYPE=zip
 	unzip -qq "$TARBALL"
 else
-	echo "Do not know how to unpack $TARBALL (expecting tar.gz, tar.bz2 or zip)"
+	echo "Do not know how to unpack $TARBALL (expecting tar.gz, tar.bz2, tar.xz or zip)"
 fi
 
 SUBDIR=
@@ -82,6 +85,9 @@ gzip)
 bzip2)
 	tar jcf "$TARBALL" *
 	;;
+xz)
+	tar Jcf "$TARBALL" *
+	;;
 zip)
 	tar zcf "${TARBALL%.zip}.tar.gz" *
 	;;

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



More information about the pkg-java-commits mailing list