diff options
author | Timothy Gu <timothygu99@gmail.com> | 2014-08-07 23:22:55 (GMT) |
---|---|---|
committer | Timothy Gu <timothygu99@gmail.com> | 2014-08-07 23:22:55 (GMT) |
commit | 940a9c26470f12cd6a722a8436a74e833913629f (patch) | |
tree | e3f361ef61a1ba803fd12cc71e0e9cfccd9d3f86 /tools | |
parent | 248c82dbac9c1069aa7bfdd5a6c9355d472b4b85 (diff) | |
download | mxe-940a9c26470f12cd6a722a8436a74e833913629f.zip mxe-940a9c26470f12cd6a722a8436a74e833913629f.tar.gz mxe-940a9c26470f12cd6a722a8436a74e833913629f.tar.bz2 |
patch-tool-mxe: Support .tgz, .tbz2, .txz
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/patch-tool-mxe | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe index 9c3c383..12a8b84 100755 --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -64,9 +64,12 @@ function init_git { fi echo "Unpacking archive..." - echo $pkg_file | grep "\.tar\.gz" >> /dev/null && tar xf $mxedir/pkg/$pkg_file - echo $pkg_file | grep "\.tar\.bz2" >> /dev/null && tar xf $mxedir/pkg/$pkg_file - echo $pkg_file | grep "\.tar\.xz" >> /dev/null && xz -dc $mxedir/pkg/$pkg_file | tar xf - + (echo $pkg_file | grep "\.tar\.gz") || (echo $pkg_file | grep "\.tgz") \ + >> /dev/null && tar xf $mxedir/pkg/$pkg_file + (echo $pkg_file | grep "\.tar\.bz2") || (echo $pkg_file | grep "\.tbz2") \ + >> /dev/null && tar xf $mxedir/pkg/$pkg_file + (echo $pkg_file | grep "\.tar\.xz") || (echo $pkg_file | grep "\.txz") \ + >> /dev/null && xz -dc $mxedir/pkg/$pkg_file | tar xf - echo $pkg_file | grep "\.zip" >> /dev/null && unzip $mxedir/pkg/$pkg_file >> /dev/null echo "Initializing repo and adding all as first commit" |