summaryrefslogtreecommitdiff
path: root/abuild.in
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2010-08-12 07:08:29 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2010-08-12 07:08:47 +0000
commit030fa98065dcc3cb3c4f410f73f701603d9d195f (patch)
tree051e60ae0790de862d650908d8307b6a3e32022d /abuild.in
parentaf22a92fa6f4e787ac6c4a22bedb65b66786427a (diff)
downloadabuild-030fa98065dcc3cb3c4f410f73f701603d9d195f.tar.gz
abuild-030fa98065dcc3cb3c4f410f73f701603d9d195f.tar.bz2
abuild-030fa98065dcc3cb3c4f410f73f701603d9d195f.tar.xz
abuild-030fa98065dcc3cb3c4f410f73f701603d9d195f.zip
abuild: support for unpacking .tar.xz
Diffstat (limited to 'abuild.in')
-rwxr-xr-xabuild.in3
1 files changed, 3 insertions, 0 deletions
diff --git a/abuild.in b/abuild.in
index db0b5e8..fbfee57 100755
--- a/abuild.in
+++ b/abuild.in
@@ -239,6 +239,9 @@ default_unpack() {
msg "Unpacking $s..."
unlzma -c "$s" | tar -C "$srcdir" -x \
|| return 1;;
+ *.tar.xz)
+ msg "Unpacking $s..."
+ unxz -c "$s" | tar -C "$srcdir" -x || return 1;;
*.zip)
msg "Unpacking $s..."
unzip "$s" -d "$srcdir" || return 1;;