aboutsummaryrefslogtreecommitdiffstats
path: root/make_windows_releases
blob: 84d2a22185dc5bd836955f98e098adbff2602d4a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/sh

if [ ! -d external-libs ]; then
   echo "Please extract qpdf-external-libs-bin.zip and try again"
   exit 2
fi

if echo $PATH | grep -q /mingw64; then
    wordsize=64
else
    wordsize=32
fi

set -e
set -x
cwd=`pwd`
PATH=$cwd/libqpdf/build:$PATH

rm -rf install-mingw$wordsize install-msvc$wordsize

./config-mingw
make -j8
make check install
make distclean

./config-msvc
make -j8
make check install
make distclean

set +x

echo ''
echo "Finished builds for $wordsize. If not done already, rerun this"
echo "in a" `expr 64 - $wordsize` "environment."
echo 'Then run "./make_windows_releases-finish".'
echo ''