]>
Commit | Line | Data |
---|---|---|
22a2d3d5 UG |
1 | #!/bin/sh -e |
2 | ||
3 | echo "##############################################################################" | |
4 | echo "## Downloading mingw" | |
5 | echo "##############################################################################" | |
6 | ||
7 | BUILD_TEMP=${BUILD_TEMP:=$TEMP} | |
8 | BUILD_TEMP=$(cygpath $BUILD_TEMP) | |
9 | ||
10 | case "$ARCH" in | |
11 | amd64) | |
12 | MINGW_URI="https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-x86_64-8.1.0-release-win32-seh-rt_v6-rev0.zip";; | |
13 | x86) | |
14 | MINGW_URI="https://bintray.com/libgit2/build-dependencies/download_file?file_path=mingw-w64-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";; | |
15 | esac | |
16 | ||
17 | if [ -z "$MINGW_URI" ]; then | |
18 | echo "No URL" | |
19 | exit 1 | |
20 | fi | |
21 | ||
22 | mkdir -p "$BUILD_TEMP" | |
23 | ||
24 | curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip | |
25 | unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP" |