2009-10-23 16:58:52 +00:00
|
|
|
#!/bin/sh
|
|
|
|
if [ ! -d external-libs ]; then
|
|
|
|
echo "Please extract qpdf-external-libs-bin.zip and try again"
|
|
|
|
exit 2
|
|
|
|
fi
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2009-10-23 17:04:44 +00:00
|
|
|
rm -rf install-mingw install-msvc
|
|
|
|
|
2009-10-23 16:58:52 +00:00
|
|
|
./config-mingw
|
|
|
|
make check install
|
|
|
|
make distclean
|
|
|
|
./config-msvc
|
|
|
|
make check install
|
|
|
|
make distclean
|
|
|
|
|
2009-10-24 14:58:06 +00:00
|
|
|
cd install-mingw
|
|
|
|
v=`ls -d qpdf-*`
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cp -p README-windows-install.txt install-mingw/$v/README.txt
|
|
|
|
cp -p README-windows-install.txt install-msvc/$v/README.txt
|
2009-10-23 16:58:52 +00:00
|
|
|
|
2009-10-24 13:41:03 +00:00
|
|
|
cd install-mingw
|
|
|
|
zip -r ../$v-bin-mingw.zip $v
|
2009-10-24 14:58:06 +00:00
|
|
|
cd ../install-msvc
|
2009-10-24 13:41:03 +00:00
|
|
|
zip -r ../$v-bin-msvc.zip $v
|
|
|
|
cd ..
|
|
|
|
|
2009-10-23 23:01:19 +00:00
|
|
|
set +x
|
|
|
|
|
2009-10-23 16:58:52 +00:00
|
|
|
echo ""
|
2009-10-24 14:20:11 +00:00
|
|
|
echo "$v-bin-mingw.zip and $v-bin-msvc.zip have been created."
|