blob: 4f5705e53456184d5f281213c7980a678eaf5a91 [file] [log] [blame] [view]
ebraminio933a81d2017-10-01 19:35:24 +03301HarfBuzz release walk-through checklist:
2
31. Open gitk and review changes since last release.
ebraminio933a81d2017-10-01 19:35:24 +03304
Behdad Esfahbod61d1c602017-10-23 13:10:21 -04005 * `git diff $(git describe | sed 's/-.*//').. src/*.h` prints all public API
6 changes.
7
8 Document them in NEWS. All API and API semantic changes should be clearly
9 marked as API additions, API changes, or API deletions. Document
Behdad Esfahbodf3e58ab2018-06-12 19:32:04 -040010 deprecations. Ensure all new API / deprecations are in listed correctly in
11 docs/harfbuzz-sections.txt
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040012
13 If there's a backward-incompatible API change (including deletions for API
14 used anywhere), that's a release blocker. Do NOT release.
15
162. Based on severity of changes, decide whether it's a minor or micro release
17 number bump,
18
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +0430193. Search for REPLACEME on the repository and replace it with the chosen version
20 for the release.
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040021
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +0430224. Make sure you have correct date and new version at the top of NEWS file,
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040023
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +0430245. Bump version in configure.ac line 3,
25
266. Do "make distcheck", if it passes, you get a tarball.
ebraminio933a81d2017-10-01 19:35:24 +033027 Otherwise, fix things and commit them separately before making release,
Behdad Esfahbodb6fdcf42018-08-08 21:54:08 -070028 Note: Check src/hb-version.h and make sure the new version number is
29 there. Sometimes, it does not get updated. If that's the case,
Behdad Esfahbod72bb1392018-10-19 11:15:35 -070030 "touch configure.ac" and rebuild. Also check that there is no hb-version.h
31 in your build/src file. Typically it will fail the distcheck if there is.
32 That's what happened to 2.0.0 going out with 1.8.0 hb-version.h... So, that's
33 a clue.
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040034
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +0430357. "make release-files". Enter your GPG password. This creates a sha256 hash
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040036 and signs it.
37
Behdad Esfahbod77968572018-07-11 15:27:37 +0200388. Now that you have release files, commit NEWS, configure.ac, and src/hb-version.h,
Behdad Esfahboddf01f3e2018-06-05 15:17:39 -070039 as well as any REPLACEME changes you made. The commit message is simply the
40 release number. Eg. "1.4.7"
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040041
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +0430429. Tag the release and sign it: Eg. "git tag -s 1.4.7 -m 1.4.7". Enter your
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040043 GPG password again.
44
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +04304510. Build win32 bundle.
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040046
47 a. Put contents of [this](https://drive.google.com/open?id=0B3_fQkxDZZXXbWltRGd5bjVrUDQ) on your `~/.local/i686-w64-mingw32`,
48
Behdad Esfahbod60c51672018-06-05 15:20:23 -070049 b. Run `../mingw32.sh --with-uniscribe` script to configure harfbuzz with mingw
50 in a subdirector (eg. winbuild/),
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040051
52 c. make
53
Behdad Esfahbod60c51672018-06-05 15:20:23 -070054 d. Back in the parent directory, run `./UPDATE.sh`(available below) to build win32
55 bundle.
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040056
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +04305711. Copy all artefacts to users.freedesktop.org and move them into
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040058 `/srv/www.freedesktop.org/www/software/harfbuzz/release` There should be four
59 files. Eg.:
ebraminio933a81d2017-10-01 19:35:24 +033060 ```
61-rw-r--r-- 1 behdad eng 1592693 Jul 18 11:25 harfbuzz-1.4.7.tar.bz2
62-rw-r--r-- 1 behdad eng 89 Jul 18 11:34 harfbuzz-1.4.7.tar.bz2.sha256
63-rw-r--r-- 1 behdad eng 339 Jul 18 11:34 harfbuzz-1.4.7.tar.bz2.sha256.asc
64-rw-r--r-- 1 behdad eng 2895619 Jul 18 11:34 harfbuzz-1.4.7-win32.zip
65```
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040066
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +04306712. While doing that, quickly double-check the size of the .tar.bz2 and .zip
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040068 files against their previous releases to make sure nothing bad happened.
69 They should be in the ballpark, perhaps slightly larger. Sometimes they
70 do shrink, that's not by itself a stopper.
71
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +04307213. Push the commit and tag out: "git push --follow-tags". Make sure it's
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040073 pushed both to freedesktop repo and github.
74
Ebrahim Byagowi5f7f0bf2018-03-29 04:22:53 +04307514. Go to GitHub release page [here](https://github.com/harfbuzz/harfbuzz/releases),
Behdad Esfahbod61d1c602017-10-23 13:10:21 -040076 edit the tag, upload artefacts and NEWS entry and save.
ebraminio933a81d2017-10-01 19:35:24 +033077
78
ebraminio933a81d2017-10-01 19:35:24 +033079## UPDATE.sh
80```bash
81#!/bin/bash
82
83v=$1
84
85if test "x$v" = x; then
86 echo "usage: UPDATE.sh micro-version"
87 exit 1
88fi
89
90dir_prefix=harfbuzz-1.4.
91dir_suffix=-win32
92dir=$dir_prefix$v$dir_suffix
93dir_old=$dir_prefix$((v-1))$dir_suffix
94if test -d "$dir"; then
95 echo "New dir $dir exists; not overwriting"
96 exit 1
97fi
98if ! test -d "$dir_old"; then
99 echo "Old dir $dir_old does NOT exist; aborting"
100 exit 1
101fi
102set -ex
103cp -a "$dir_old" "$dir.tmp"
104rm -f "$dir.tmp"/GDX32.dll
105rm -f "$dir.tmp"/usp10.dll
106cp ../winbuild/src/.libs/libharfbuzz-0.dll{,.def} $dir.tmp/
107cp ../winbuild/util/.libs/hb-{shape,view}.exe $dir.tmp/
108i686-w64-mingw32-strip $dir.tmp/{hb-shape.exe,hb-view.exe,libharfbuzz-0.dll}
109mv $dir.tmp $dir
110zip -r $dir.zip $dir
111echo Bundle $dir.zip ready
112```