unpack .tgz source files

This commit is contained in:
Natanael Copa 2008-11-06 13:47:00 +00:00
parent ed9f3ec342
commit 45ff2bfefe

2
abuild
View File

@ -101,7 +101,7 @@ unpack() {
for u in $source; do for u in $source; do
local s="$SRCDEST/${u##*/}" # $(basename $s) local s="$SRCDEST/${u##*/}" # $(basename $s)
case "$s" in case "$s" in
*.tar.gz) *.tar.gz|*.tgz)
tar -C "$srcdir" -zxf "$s" || return 1;; tar -C "$srcdir" -zxf "$s" || return 1;;
*.tar.bz2) *.tar.bz2)
tar -C "$srcdir" -jxf "$s" || return 1;; tar -C "$srcdir" -jxf "$s" || return 1;;