cookutils rev 597

cook: some .tar.xz are bz2 files...
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Apr 05 13:48:40 2013 +0200 (2013-04-05)
parents 8fbd30a8686a
children 24dbe04170be
files cook
line diff
     1.1 --- a/cook	Fri Mar 29 17:05:30 2013 +0000
     1.2 +++ b/cook	Fri Apr 05 13:48:40 2013 +0200
     1.3 @@ -294,7 +294,7 @@
     1.4  		*.tar.lzma) tar xaf $SRC/$TARBALL ;;
     1.5  		*.tar) tar xf $SRC/$TARBALL ;;
     1.6  		*.zip|*.xpi) unzip -o $SRC/$TARBALL ;;
     1.7 -		*.xz) unxz -c $SRC/$TARBALL | tar xf - ;;
     1.8 +		*.xz) unxz -c $SRC/$TARBALL | tar xf - || tar xf $SRC/$TARBALL 2>/dev/null;;
     1.9  		*.Z) uncompress -c $SRC/$TARBALL | tar xf - ;;
    1.10  		*.rpm) rpm2cpio $SRC/$TARBALL | cpio -idm --quiet ;;
    1.11  		*.run) /bin/sh $SRC/$TARBALL $RUN_OPTS ;;