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
|
|
|
|
|
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
|
|
|
|
|
2017-08-21 12:39:41 +00:00
|
|
|
rm -rf install-mingw$wordsize install-msvc$wordsize
|
2009-10-23 17:04:44 +00:00
|
|
|
|
2017-08-21 12:39:41 +00:00
|
|
|
./config-mingw
|
|
|
|
make -j8
|
2009-10-23 16:58:52 +00:00
|
|
|
make check install
|
|
|
|
make distclean
|
2017-08-21 12:39:41 +00:00
|
|
|
|
|
|
|
./config-msvc
|
|
|
|
make -j8
|
2009-10-23 16:58:52 +00:00
|
|
|
make check install
|
|
|
|
make distclean
|
|
|
|
|
2009-10-23 23:01:19 +00:00
|
|
|
set +x
|
|
|
|
|
2012-06-21 18:06:54 +00:00
|
|
|
echo ''
|
2017-08-21 12:39:41 +00:00
|
|
|
echo "Finished builds for $wordsize. If not done already, rerun this"
|
|
|
|
echo "in a" `expr 64 - $wordsize` "environment."
|
2012-07-29 20:29:15 +00:00
|
|
|
echo 'Then run "./make_windows_releases-finish".'
|
2012-06-21 18:06:54 +00:00
|
|
|
echo ''
|