exx: +tar.xz, +txz
authorJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 31 Jul 2013 15:40:28 +0000 (17:40 +0200)
committerJan Kratochvil <jan.kratochvil@redhat.com>
Wed, 31 Jul 2013 15:40:28 +0000 (17:40 +0200)
bin/exx

diff --git a/bin/exx b/bin/exx
index 8321cf3..97f021b 100755 (executable)
--- a/bin/exx
+++ b/bin/exx
@@ -24,6 +24,8 @@ use constant FORMATS=>{
        "tar.bz2"=>do { $_=FORMAT_TAR; s/xf/xjf/; $_; },
        "tar.bz" =>"tar.bz2",
        "tbz"    =>"tar.bz",
+       "tar.xz" =>do { $_=FORMAT_TAR; s/xf/xJf/; $_; },
+       "txz"    =>do { $_=FORMAT_TAR; s/xf/xJf/; $_; },
        "msi"    =>'cabextract -q $pathname',
        };