Skip to content

Commit

Permalink
Streamline Windows release process
Browse files Browse the repository at this point in the history
  • Loading branch information
jberkenbilt committed Feb 19, 2018
1 parent 4bb3046 commit 00bd6a2
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
2 changes: 1 addition & 1 deletion README-maintainer.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
cd /tmp
zip -r qpdf-external-libs-src.zip external-libs
```
* To create Windows binary releases, extract the qpdf source distribution in Windows (MSYS2 + MSVC). From the extracted directory, extract the binary distribution of the external libraries. Run ./make_windows_releases from there.
* To create Windows binary releases, extract the qpdf source distribution in Windows (MSYS2 + MSVC). From the extracted directory, extract the binary distribution of the external libraries. Run ./make_windows_releases simultaneously in 32-bit and 64-windows from there.
* Before releasing, rebuild and test debian package.
* Remember to copy `README-what-to-download.md` separately onto the download area.
* Remember to update the web page including putting new documentation in the `files` subdirectory of the website on sourceforge.net.
Expand Down
31 changes: 26 additions & 5 deletions make_windows_releases
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,21 @@ else
wordsize=32
fi

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`
Expand All @@ -28,10 +43,16 @@ make -j8
make check install
make distclean

touch win.$wordsize

set +x

echo ''
echo "Finished builds for $wordsize. If not done already, rerun this"
echo "in a" `expr 96 - $wordsize` "environment."
echo 'Then run "./make_windows_releases-finish".'
echo ''
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
3 changes: 3 additions & 0 deletions make_windows_releases-finish
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ if [ ! -d external-libs ]; then
exit 2
fi

echo "Waiting for win.32 and win.64"
while [ ! -f win.32 ] || [ ! -f win.64 ]; do sleep 1; done

set -e
set -x
cwd=`pwd`
Expand Down

0 comments on commit 00bd6a2

Please sign in to comment.