]> git.proxmox.com Git - libgit2.git/blame - azure-pipelines/setup-mingw.sh
New upstream version 1.1.0+dfsg.1
[libgit2.git] / azure-pipelines / setup-mingw.sh
CommitLineData
22a2d3d5
UG
1#!/bin/sh -e
2
3echo "##############################################################################"
4echo "## Downloading mingw"
5echo "##############################################################################"
6
7BUILD_TEMP=${BUILD_TEMP:=$TEMP}
8BUILD_TEMP=$(cygpath $BUILD_TEMP)
9
10case "$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";;
15esac
16
17if [ -z "$MINGW_URI" ]; then
18 echo "No URL"
19 exit 1
20fi
21
22mkdir -p "$BUILD_TEMP"
23
24curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip
25unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP"