doc: rewrite part of README-release
[platform/upstream/coreutils.git] / 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     git checkout master; git pull
6
7 * Run ./configure && make maintainer-clean
8
9 * Ensure that the desired versions of autoconf, automake, bison, etc.
10   are in your PATH.  See the buildreq list in bootstrap.conf for
11   the complete list.
12
13 * Ensure that you're on "master" with no uncommitted diffs.
14   This should produce no output: git checkout master; git diff
15
16 * Run bootstrap one last time.  This downloads any new translations:
17
18     ./bootstrap
19
20 FIXME: enable excluded programs like arch? to get their manual pages?
21
22 * Pre-release testing:
23
24   Run the following on at least one SELinux-enabled (enforcing) and
25   one non-SELinux system:
26
27     make distcheck
28     make -j1 check RUN_VERY_EXPENSIVE_TESTS=yes RUN_EXPENSIVE_TESTS=yes
29     sudo env PATH="$PATH" NON_ROOT_USERNAME=$USER make -k check-root
30
31   Note the -j1 above.  If you use -jN, for larger N, some of the expensive
32   tests are likely to interfere with concurrent performance-measuring or
33   timing-sensitive tests, resulting in spurious failures.
34
35   If "make distcheck" doesn't run "make syntax-check" for you, then run
36   it manually:
37
38     make syntax-check
39
40 * Set the date, version number, and release type [stable/alpha/beta] on
41   line 3 of NEWS, commit that, and tag the release by running e.g.,
42
43     build-aux/do-release-commit-and-tag 8.1 beta
44
45 * Run the following to create release tarballs.  Your choice selects the
46   corresponding upload-to destination in the emitted gnupload command.
47   The different destinations are specified in cfg.mk.  See the definitions
48   of gnu_ftp_host-{alpha,beta,stable}.
49
50     # "TYPE" must be stable, beta or alpha
51     make TYPE
52
53 * Test the tarball.  copy it to a few odd-ball systems and ensure that
54   it builds and passes all tests.
55
56 * While that's happening, write the release announcement that you will
57   soon post.
58
59 Once all the builds and tests have passed,
60
61 * Run the gnupload command that was suggested by your "make stable" run above.
62
63 * Wait a few minutes (maybe up to 30?) and then use the release URLs to
64   download all tarball/signature pairs and use gpg --verify to ensure
65   that they're all valid.
66
67 * Push the NEWS-updating changes and the new tag:
68
69     v=$(cat .prev-version)
70     git push origin master tag v$v
71
72 * Send the gpg-signed announcement mail, e.g.,
73
74     To: info-gnu@gnu.org, coreutils-announce@gnu.org
75     Cc: coordinator@translationproject.org, bug-coreutils@gnu.org
76     Subject: coreutils-8.0 released [beta]
77
78 * Approve the announcement here:
79   http://lists.gnu.org/mailman/admindb/coreutils-announce
80
81 * Announce it on Savannah, too:
82   From here:
83     https://savannah.gnu.org/projects/coreutils/
84   click on the "submit news", then write something like the following:
85   (If there is no such button, then enable "News" for the project via
86    the Main -> "Select Features" menu item, or via this link:
87    https://savannah.gnu.org/project/admin/editgroupfeatures.php?group=coreutils)
88
89     Subject: coreutils-0.0 released [beta]
90     The announcement is here:
91       http://article.gmane.org/gmane.comp.gnu.core-utils.announce/54
92
93   Then go here to approve it:
94     https://savannah.gnu.org/news/approve.php?group=coreutils
95
96 * After each non-alpha release, update the on-line manual accessible via
97
98     http://www.gnu.org/software/coreutils/manual/
99
100   by running this:
101
102     build-aux/gnu-web-doc-update