diff options
author | Ryan Pavlik <rpavlik@iastate.edu> | 2012-05-07 17:44:38 (GMT) |
---|---|---|
committer | Ryan Pavlik <rpavlik@iastate.edu> | 2012-05-07 17:58:08 (GMT) |
commit | 8291d7e7f7b43dc70e10e19a07e6b44db7a2570a (patch) | |
tree | 4aebd9842a3f685f7561b28a8ca52c8453ec013f | |
parent | 05a4200e9d775c4068a27a88197b2154aa0ba2ad (diff) | |
download | mxe-8291d7e7f7b43dc70e10e19a07e6b44db7a2570a.zip mxe-8291d7e7f7b43dc70e10e19a07e6b44db7a2570a.tar.gz mxe-8291d7e7f7b43dc70e10e19a07e6b44db7a2570a.tar.bz2 |
patch tool: Check for package file, and if it's not there, use makefile to grab it.
-rwxr-xr-x | tools/patch-tool-mxe | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/patch-tool-mxe b/tools/patch-tool-mxe index 07bd9f6..e2f5e4c 100755 --- a/tools/patch-tool-mxe +++ b/tools/patch-tool-mxe @@ -46,6 +46,13 @@ setupEnv() { function init_git { setupEnv cd $gitsdir + if [ ! -f $mxedir/pkg/$pkg_file ]; then + make -C "$mxedir" download-$pkg + if [ ! $? -eq 0 ]; then + echo "Could not build target download-$pkg - cancelling init." >&2 + exit 1 + fi + fi 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 - |