2009-10-23 16:58:52 +00:00
|
|
|
#!/bin/sh
|
2017-08-21 12:39:41 +00:00
|
|
|
|
2009-10-23 16:58:52 +00:00
|
|
|
if [ ! -d external-libs ]; then
|
|
|
|
echo "Please extract qpdf-external-libs-bin.zip and try again"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
2017-08-21 12:39:41 +00:00
|
|
|
if echo $PATH | grep -q /mingw64; then
|
|
|
|
wordsize=64
|
|
|
|
else
|
|
|
|
wordsize=32
|
|
|
|
fi
|
|
|
|
|
2018-02-21 14:05:34 +00:00
|
|
|
if [ "$wordsize" = 64 ]; then
|
|
|
|
if [ ! -f win.32 ]; then
|
|
|
|
echo "Waiting for win.32 to appear"
|
|
|
|
while [ ! -f win.32 ]; do
|
2018-02-19 01:57:19 +00:00
|
|
|
sleep 5
|
|
|
|
done
|
|
|
|
fi
|
|
|
|
else
|
|
|
|
rm -f win.32 win.64
|
|
|
|
echo ''
|
2018-02-21 14:05:34 +00:00
|
|
|
echo "You may now start $0 in a 64-bit window."
|
2018-02-19 01:57:19 +00:00
|
|
|
echo ''
|
|
|
|
sleep 5
|
|
|
|
fi
|
|
|
|
|
2009-10-23 16:58:52 +00:00
|
|
|
set -e
|
2009-10-23 21:22:22 +00:00
|
|
|
set -x
|
2009-10-23 16:58:52 +00:00
|
|
|
cwd=`pwd`
|
|
|
|
PATH=$cwd/libqpdf/build:$PATH
|
|
|
|
|
2018-06-23 02:11:35 +00:00
|
|
|
for i in msvc mingw; do
|
|
|
|
rm -rf {install,qtest}-$i$wordsize
|
|
|
|
./config-$i
|
|
|
|
make -j8
|
|
|
|
make -k check || \
|
|
|
|
{ mkdir qtest-$i$wordsize; \
|
|
|
|
tar cf - */build/qtest.log | (cd qtest-$i$wordsize; tar xf -) }
|
|
|
|
make install
|
|
|
|
make distclean
|
|
|
|
done
|
2009-10-23 16:58:52 +00:00
|
|
|
|
2018-02-19 01:57:19 +00:00
|
|
|
touch win.$wordsize
|
|
|
|
|
2009-10-23 23:01:19 +00:00
|
|
|
set +x
|
|
|
|
|
2018-02-19 01:57:19 +00:00
|
|
|
echo "Finished builds for $wordsize."
|
|
|
|
|
2018-02-21 14:05:34 +00:00
|
|
|
if [ "$wordsize" = 32 ]; then
|
2018-02-19 01:57:19 +00:00
|
|
|
echo "If not done already, rerun this in a "`expr 96 - $wordsize`"-bit environment."
|
|
|
|
echo ''
|
2018-02-21 14:05:34 +00:00
|
|
|
else
|
2018-02-19 01:57:19 +00:00
|
|
|
echo 'Running "./make_windows_releases-finish".'
|
|
|
|
echo ''
|
|
|
|
./make_windows_releases-finish
|
|
|
|
fi
|