2
1
mirror of https://github.com/qpdf/qpdf.git synced 2024-11-05 21:07:50 +00:00
qpdf/make_windows_releases

59 lines
1018 B
Plaintext
Raw Normal View History

#!/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
2018-02-19 01:57:19 +00:00
if [ "$wordsize" = 32 ]; then
if [ ! -f win.64 ]; then
echo "Waiting for win.64 to appear"
while [ ! -f win.64 ]; do
sleep 5
done
fi
else
rm -f win.32 win.64
echo ''
echo "You may now start $0 in a 32-bit window."
echo ''
sleep 5
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
2018-02-19 01:57:19 +00:00
touch win.$wordsize
set +x
2018-02-19 01:57:19 +00:00
echo "Finished builds for $wordsize."
if [ "$wordsize" = 64 ]; then
echo "If not done already, rerun this in a "`expr 96 - $wordsize`"-bit environment."
echo ''
echo 'Running "./make_windows_releases-finish".'
echo ''
./make_windows_releases-finish
fi