blob: f57cc6b4e8555e676cf99c453895b0b3fb0b696f [file] [log] [blame]
Alex Crichton87fdebd2015-09-12 22:24:01 -07001If (!${env:MSYS2_ARCH}) {
2 Exit 0
3}
4
5Start-FileDownload `
6 ("http://kent.dl.sourceforge.net/project/msys2/Base/" + `
7 $env:MSYS2_ARCH + "/msys2-base-" + $env:MSYS2_ARCH + "-" + `
8 $env:MSYS2_BASEVER + ".tar.xz") `
9 -FileName "msys2.tar.xz"
10
117z x msys2.tar.xz
127z x msys2.tar > $nul
13Move-Item ("msys" + $env:MSYS2_BITS) msys2
14.\msys2\usr\bin\bash.exe -lc ""
15.\msys2\usr\bin\bash.exe -lc `
16 ("for i in {1..3}; do " + `
17 "pacman --noconfirm -Suy mingw-w64-"+ $env:MSYS2_ARCH + "-gcc " + `
18 "&& break || sleep 15; " + `
19 "done")
20.\msys2\autorebase.bat