25e1dbf0cdec42f08b83e5a280848d2681f24d01
[gnulib.git] / top / README-release
1 Here are most of the steps we (maintainers) follow when making a release.
2
3 * Start from a clean, up-to-date git directory:
4
5     make -k maintainer-clean || { ./configure && make maintainer-clean; }
6     git checkout master
7     git pull origin master
8
9 * Ensure that the latest stable versions of autoconf, automake, etc.
10   are in your PATH.  See the buildreq list in bootstrap.conf for
11   the complete list of tools.
12
13 * Ensure that you're on "master" with no uncommitted diffs.
14   This should produce no output:
15
16     git checkout master; git diff
17
18 * Ensure that you've pushed all changes that belong in the release
19   and that the NixOS/Hydra autobuilder is reporting all is well:
20
21     http://hydra.nixos.org/jobset/gnu/@PACKAGE@-master
22
23 * Run "./bootstrap && ./configure".  This downloads any new translations.
24
25 * Pre-release testing:
26   Ensure that "make check syntax-check" succeeds.
27
28 * Run "make distcheck"
29
30 * Set the date, version number, and release type [stable/alpha/beta] on
31   line 3 of NEWS, commit that, and tag the release by running e.g.,
32
33     build-aux/do-release-commit-and-tag X.Y stable
34
35 * Run the following to create release tarballs.  Your choice selects the
36   corresponding upload-to destination in the emitted gnupload command.
37   The different destinations are specified in cfg.mk.  See the definitions
38   of gnu_ftp_host-{alpha,beta,stable}.
39
40     # "TYPE" must be stable, beta or alpha
41     make TYPE
42
43 * Test the tarball.  Copy it to a few odd-ball systems and ensure that
44   it builds and passes all tests.
45
46 * While that's happening, write the release announcement that you will
47   soon post.  Start with the template, $HOME/announce-@PACKAGE@-X.Y
48   that was just created by that "make" command.
49
50 Once all the builds and tests have passed,
51
52 * Run the gnupload command that was suggested by your "make stable" run above.
53
54 * Wait a few minutes (maybe up to 30?) and then use the release URLs to
55   download all tarball/signature pairs and use gpg --verify to ensure
56   that they're all valid.
57
58 * Push the NEWS-updating changes and the new tag:
59
60     v=$(cat .prev-version)
61     git push origin master tag v$v
62
63 * Announce it on Savannah first, so you can include the preferable
64   savannah.org announcement link in the email message.
65
66   From here:
67     https://savannah.gnu.org/projects/@PACKAGE@/
68   click on the "submit news", then write something like the following:
69   (If there is no such button, then enable "News" for the project via
70    the Main -> "Select Features" menu item, or via this link:
71    https://savannah.gnu.org/project/admin/editgroupfeatures.php?group=@PACKAGE@)
72
73     Subject: @PACKAGE@-X.Y released [stable]
74     +verbatim+
75     ...paste the announcement here...
76     -verbatim-
77
78   Then go here to approve it:
79     https://savannah.gnu.org/news/approve.php?group=@PACKAGE@
80
81 * Send the announcement email message.
82
83 * After each non-alpha release, update the on-line manual accessible via
84
85     http://www.gnu.org/software/@PACKAGE@/manual/
86
87   by running this:
88
89     build-aux/gnu-web-doc-update