scripts/unpack, scripts/extract: add support to extract '*.7z' files

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue
2010-07-18 00:47:00 +02:00
parent 1c0befea49
commit 34e64f7a49
2 changed files with 5 additions and 0 deletions

View File

@@ -30,6 +30,10 @@ for s in `sed 's%.*/\(.*\)\$%\1%' $PKG_DIR/url`; do
*.tar.gz | *.tgz)
tar xzf $f -C $3
;;
*.7z)
mkdir -p $3/$1
7z x -o$3/$1 $f
;;
*.diff | *.patch)
cat $f | patch -d $3 -p1
;;