scripts/unpack: add (initial) support to handle 'zip' archives

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue
2013-12-25 23:26:25 +01:00
parent 1d33adead4
commit 9a5a8c5917
2 changed files with 5 additions and 0 deletions

View File

@@ -56,6 +56,10 @@ for i in $PKG_URL; do
mkdir -p $3/$1
7z x -o$3/$1 $f
;;
*.zip)
mkdir -p $3/$1
unzip -q $f -d $3/$1
;;
*.diff | *.patch)
cat $f | patch -d $3 -p1
;;