changeset 2331:0148ba5c1bd7

add xz decompression to patch tool
author Tony Theodore <tonyt@logyst.com>
date Wed, 28 Mar 2012 00:18:32 +1100
parents 95a79430eec1
children 39774fa2edd9
files tools/patch-tool-mingw
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tools/patch-tool-mingw	Tue Mar 27 13:41:41 2012 +0200
+++ b/tools/patch-tool-mingw	Wed Mar 28 00:18:32 2012 +1100
@@ -44,6 +44,7 @@
   cd $gitsdir
   echo $pkg_file | grep "\.tar\.gz" >> /dev/null  && tar xf $mcedir/pkg/$pkg_file
   echo $pkg_file | grep "\.tar\.bz2" >> /dev/null && tar xf $mcedir/pkg/$pkg_file
+  echo $pkg_file | grep "\.tar\.xz"  >> /dev/null && xz -dc $mcedir/pkg/$pkg_file | tar xf -
   echo $pkg_file | grep "\.zip" >> /dev/null      && unzip $mcedir/pkg/$pkg_file >> /dev/null
   cd $gitsdir/$pkg_subdir && \
   (git init; git add -A; git commit -m "init") > /dev/null