cookutils rev 42
Improve extract_source (Thanks Godane)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sat May 07 02:22:37 2011 +0200 (2011-05-07) |
parents | 8a282c990ecc |
children | 14576e7f36dd |
files | cook |
line diff
1.1 --- a/cook Sat May 07 02:17:06 2011 +0200 1.2 +++ b/cook Sat May 07 02:22:37 2011 +0200 1.3 @@ -191,9 +191,13 @@ 1.4 gettext "Extracting:"; echo " $TARBALL" 1.5 case "$TARBALL" in 1.6 *.tar.gz|*.tgz) tar xzf $SRC/$TARBALL ;; 1.7 - *.tar.bz2) tar xjf $SRC/$TARBALL ;; 1.8 + *.tar.bz2|*.tbz) tar xjf $SRC/$TARBALL ;; 1.9 *.tar.lzma) tar xaf $SRC/$TARBALL ;; 1.10 - *.zip) unzip $SRC/$TARBALL ;; 1.11 + *.tar) tar xf $SRC/$TARBALL ;; 1.12 + *.zip|*.xpi) unzip -o $SRC/$TARBALL ;; 1.13 + *.xz) unxz -c $SRC/$TARBALL | tar xf - ;; 1.14 + *.Z) uncompress -c $SRC/$TARBALL | tar xf - ;; 1.15 + *.rpm) rpm2cpio $SRC/$TARBALL | cpio -idm --quiet ;; 1.16 esac 1.17 } 1.18