summaryrefslogtreecommitdiff
path: root/.gitlab-ci/setup_mingw.sh
blob: 7e61c34956e43570b71bdcda7b7129fdced7118e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/sh

pacman --noconfirm -Syu

prefix=
if [ -n "$MINGW_PACKAGE_PREFIX" ]; then
    prefix="${MINGW_PACKAGE_PREFIX}-"
fi
for module in libiconv python xz zlib "$@"; do
    pacman --noconfirm -S --needed ${prefix}$module
done

if [ ! -e libxml2-build/xmlconf ]; then
    mkdir -p libxml2-build
    wget https://www.w3.org/XML/Test/xmlts20080827.tar -O - |
       tar -x -C libxml2-build
fi