tazwok rev 45
Tar and zip archives support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Mar 07 15:54:39 2008 +0000 (2008-03-07) |
parents | 3c7920cc2e89 |
children | c4e3ca6f4cd1 |
files | tazwok |
line diff
1.1 --- a/tazwok Wed Mar 05 16:19:38 2008 +0100 1.2 +++ b/tazwok Fri Mar 07 15:54:39 2008 +0000 1.3 @@ -272,7 +272,12 @@ 1.4 # Log process. 1.5 echo "untaring $TARBALL" >> $LOG 1.6 echo -n "Untaring $TARBALL... " 1.7 - if [ "`basename $TARBALL | grep tar.bz2`" ]; then 1.8 + if [ "`echo $TARBALL | grep zip$`" ]; then 1.9 + ( cd $WOK/$PACKAGE; unzip $SOURCES_REPOS 1.10 +ITORY/$TARBALL ) 1.11 + elif [ "`basename $TARBALL | grep tar`" ]; then 1.12 + tar xf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE 1.13 + elif [ "`basename $TARBALL | grep tar.bz2`" ]; then 1.14 tar xjf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE 1.15 else 1.16 tar xzf $SOURCES_REPOSITORY/$TARBALL -C $WOK/$PACKAGE