Tweak post-release script and documentation

For the release candidates, allow passing the version (e.g. "3.1.1-rc")
to post-release.sh on the command line and document this.

Also don't commit automatically, this is annoying, especially as the
script doesn't check for errors.

Finally, fix the problem with the CHM file name: it must be zipped,
presumably to avoid problems with some firewalls blocking downloading
CHM files (as there is really no advantage in compressing the already
compressed CHM file otherwise).
This commit is contained in:
Vadim Zeitlin 2018-02-05 15:42:04 +01:00
parent 08ea09c7fe
commit 35d2823601
2 changed files with 17 additions and 11 deletions

View File

@ -8,8 +8,12 @@ topdir=`dirname $0`/../..
# Build the file list for sha1sums, from `docs/release.md` # Build the file list for sha1sums, from `docs/release.md`
declare -a files=(`sed -n '/^## Download Verification/,/^## Binaries/p' $topdir/docs/release.md | sed -n -E 's/^\s*0{40}\s{2}(wx.*)/\1/p'`) declare -a files=(`sed -n '/^## Download Verification/,/^## Binaries/p' $topdir/docs/release.md | sed -n -E 's/^\s*0{40}\s{2}(wx.*)/\1/p'`)
# Get the release version # Get the release version unless it's given explicitly on the command line.
ver_string=`grep '#define wxVERSION_STRING ' $topdir/include/wx/version.h | sed 's/^.*"wxWidgets \(.*\)")/\1/'` if [ -z $1 ]; then
ver_string=`grep '#define wxVERSION_STRING ' $topdir/include/wx/version.h | sed 's/^.*"wxWidgets \(.*\)")/\1/'`
else
ver_string=$1
fi
for i in "${files[@]}" for i in "${files[@]}"
do do
@ -20,5 +24,4 @@ do
sed -i -E "/^\s*[0]{40}\s{2}wx/ s/(^\s*)[0]{40}(\s{2}$i)/\1$sha1sum\2/" $topdir/docs/release.md sed -i -E "/^\s*[0]{40}\s{2}wx/ s/(^\s*)[0]{40}(\s{2}$i)/\1$sha1sum\2/" $topdir/docs/release.md
done done
# Commit sha1sum related changes echo "File $topdir/docs/release.md updated after $ver_string release, don't forget to commit it."
git commit -m "Update released files sha1sums after $ver_string release" $topdir/docs/release.md

View File

@ -83,15 +83,18 @@ ensure you have the appropriate tag or commit checked out.
contained in the copied release ZIP and not from the current working wx contained in the copied release ZIP and not from the current working wx
directory. directory.
4. Copy these Windows packages back to your Linux or OSX `distrib/release/x.y.z` 4. Copy `wxMSW-x.y.z-Setup.exe` back to your Linux or OSX `distrib/release/x.y.z`
directory so you can continue with the upload step with all packages directory so you can continue with the upload step with all packages
available: available. Also create a ZIP file from the CHM one:
wxMSW-x.y.z-Setup.exe zip wxWidgets-x.y.z-docs-chm.zip wxWidgets-x.y.z.chm
wxWidgets-x.y.z.chm
5. Run `./build/tools/post-release.sh` to update the sha1sums in and copy/move it to the same directory.
`docs/release.md` and commit the changes.
5. Update the version in `docs/release.md` (typically just a global search and
replace) and run `./build/tools/post-release.sh` to update the sha1sums in
it, then commit the changes. Notice that when making an RC, the version must
be explicitly specified on this script command line.
## Uploading ## Uploading
@ -105,7 +108,7 @@ Attach the following files to it:
wxWidgets-x.y.z.7z wxWidgets-x.y.z.7z
wxWidgets-x.y.z.tar.bz2 wxWidgets-x.y.z.tar.bz2
wxWidgets-x.y.z.zip wxWidgets-x.y.z.zip
wxWidgets-x.y.z.chm wxWidgets-x.y.z-docs-chm.zip
wxWidgets-x.y.z-docs-html.tar.bz2 wxWidgets-x.y.z-docs-html.tar.bz2
wxWidgets-x.y.z-docs-html.zip wxWidgets-x.y.z-docs-html.zip
wxWidgets-x.y.z-headers.7z wxWidgets-x.y.z-headers.7z