Add scripts for automating more parts of the release process

Update dates in various files before the release automatically.

Also automatically update SHA-1 of the release files both before the
release (to zero them) and afterwards (to use the correct values).

Closes https://github.com/wxWidgets/wxWidgets/pull/443
This commit is contained in:
Cătălin Răceanu
2017-03-23 02:55:24 +02:00
committed by Vadim Zeitlin
parent 9b65905c4b
commit 45c33d2a17
3 changed files with 94 additions and 14 deletions

View File

@@ -46,23 +46,22 @@ and then run it using the new DLLs.
## Pre-Release Steps
* Update `docs/readme.txt`. Please review its contents in addition to just
changing the version number.
* Update `docs/release.md` (the release sha1sums should be set to zeroes).
* Put a date on the release line in `docs/changes.txt`.
* Update the date in the manual (`docs/doxygen/mainpages/manual.h`).
* Update the release announcement post in `docs/publicity/announce.txt`.
1. Perform the following steps. You can run `build/tools/pre-release.sh` to do
the straightforward changes like updating the date and version number
automatically, but please also review and update the contents of the README
and announcement text.
* Update `docs/readme.txt`: version needs to be changed, content updated.
* Update `docs/release.md`: the release sha1sums should be set to zeroes.
* Put a date on the release line in `docs/changes.txt`.
* Update the date in the manual (`docs/doxygen/mainpages/manual.h`).
* Update the release announcement post in `docs/publicity/announce.txt`.
Commit the changes and finally tag the release, preferably GPG-signed:
2. Commit the changes and tag the release using your GPG key:
git tag -s -m 'Tag X.Y.Z release' vX.Y.Z
and otherwise unsigned:
git tag -m 'Tag X.Y.Z release' vX.Y.Z
Don't overwrite existing tags. For non-final releases use e.g. `X.Y.Z-rc1`
instead of `X.Y.Z`.
Don't overwrite existing tags. For non-final releases use e.g. `X.Y.Z-rc1`
instead of `X.Y.Z`.
## Creating Release Files
@@ -91,7 +90,8 @@ ensure you have the appropriate tag or commit checked out.
wxMSW-x.y.z-Setup.exe
wxWidgets-x.y.z.chm
5. Update the sha1sums in `docs/release.md` and commit the changes.
5. Run `./build/tools/post-release.sh` to update the sha1sums in
`docs/release.md` and commit the changes.
## Uploading