summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTony Theodore <tonyt@logyst.com>2012-03-27 13:18:32 (GMT)
committerTony Theodore <tonyt@logyst.com>2012-03-27 13:18:32 (GMT)
commit77b1140c058f7093d16b81ccb6b84f90f45c0ff4 (patch)
tree86d99a1653bddf03a8b583b3c161d974fdcfc03b
parent8aafe30c082fe6478766d0d9d64ccb9dca460058 (diff)
downloadmxe-77b1140c058f7093d16b81ccb6b84f90f45c0ff4.zip
mxe-77b1140c058f7093d16b81ccb6b84f90f45c0ff4.tar.gz
mxe-77b1140c058f7093d16b81ccb6b84f90f45c0ff4.tar.bz2
add xz decompression to patch tool
-rwxr-xr-xtools/patch-tool-mingw1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/patch-tool-mingw b/tools/patch-tool-mingw
index 304e1b7..bebe0fe 100755
--- a/tools/patch-tool-mingw
+++ b/tools/patch-tool-mingw
@@ -44,6 +44,7 @@ function init_git {
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