*/ChangeLog: Trivial fixes.
[bpt/emacs.git] / admin / make-tarball.txt
CommitLineData
c38e0c97
PE
1Instructions to create pretest or release tarballs. -*- coding: utf-8 -*-
2-- originally written by Gerd Moellmann, amended by Francesco Potortì
383c1c75 3 with the initial help of Eli Zaretskii
90073820 4
90073820 5
31045a5b
GM
6Steps to take before starting on the first pretest in any release sequence:
7
81. Decide on versions of automake and autoconf, and ensure you will
7d2707f9
GM
9 have them available for the duration of the release process.
10
31045a5b
GM
112. Consider increasing the value of the variable
12 `customize-changed-options-previous-release' in cus-edit.el to
13 refer to a newer version of Emacs. (This is probably needed only
14 when preparing the first pretest for a major Emacs release.)
15 Commit cus-edit.el if changed.
16
17
18General steps (for each step, check for possible errors):
19
1a71dc49 201. `bzr update' (for a bound branch), or `bzr pull'.
31045a5b 21 bzr status # check for locally modified files
90073820
FP
22
232. Bootstrap to make 100% sure all elc files are up-to-date, and to
24 make sure that the later tagged version will bootstrap, should it be
25 necessary to check it out.
26
7d2707f9 273. Regenerate the etc/AUTHORS file:
31045a5b
GM
28 M-: (require 'authors) RET
29 M-x authors RET
30
0d613483
GM
31 If there is an "*Authors Errors*" buffer, address the issues.
32 If there was a ChangeLog typo, fix it. If a file was deleted or
33 renamed, consider adding an appropriate entry to authors-ignored-files,
34 authors-valid-file-names, or authors-renamed-files-alist.
31045a5b
GM
35
36 If necessary, repeat M-x authors after making those changes.
37 Save the "*Authors*" buffer as etc/AUTHORS.
38 Check the diff looks reasonable. Maybe add entries to
39 authors-ambiguous-files or authors-aliases, and repeat.
40 Commit any fixes to ChangeLogs or authors.el.
c0982072
LK
41
424. Set the version number (M-x load-file RET admin/admin.el RET, then
7d2707f9 43 M-x set-version RET). For a release, add released ChangeLog
90073820
FP
44 entries (M-x add-release-logs RET).
45
3baeb95e
GM
46 For a pretest, start at version .90. After .99, use .990 (so that
47 it sorts).
48
9e4a1ee0
GM
49 The final pretest should be a release candidate. Set the version
50 number to that of the actual release. Pick a date about a week
51 from now when you intend to make the release. Use M-x add-release-logs
52 to add the ChangeLog entries for that date to the tar file (but
53 not yet to the repository). Name the tar file as
6b88120b 54 emacs-XX.Y-rc1.tar. If all goes well in the following week, you
9e4a1ee0
GM
55 can simply rename the file and use it for the actual release.
56
501390c5 575. autoreconf -i -I m4 --force
54aa48fe 58 make bootstrap
90073820 59
8e5c7e6f
GM
60 make -C etc/refcards
61 make -C etc/refcards clean
62
31045a5b
GM
636. Copy lisp/loaddefs.el to lisp/ldefs-boot.el.
64
65 Commit etc/AUTHORS, lisp/ldefs-boot.el, and the files changed
66 by M-x set-version.
1a71dc49 67 For a release, also commit the ChangeLog files in all directories.
90073820 68
31045a5b
GM
697. ./make-dist --snapshot --no-compress
70
71 Check the contents of the new tar with
54aa48fe 72 admin/diff-tar-files against an older tar file. Some old pretest
1a71dc49
GM
73 tarballs may be found at <ftp://alpha.gnu.org/gnu/emacs/pretest>;
74 old release tarballs are at <ftp://ftp.gnu.org/pub/gnu/emacs/>.
90073820 75
c789f32c
GM
76 If this is the first pretest of a major release, just comparing
77 with the previous release may overlook many new files. You can try
1a71dc49
GM
78 something like `find . | sort' in a clean bzr tree, and compare the
79 results against the new tar contents.
c789f32c 80
31045a5b
GM
818. tar -xf emacs-NEW.tar; cd emacs-NEW
82 ./configure --prefix=/tmp/emacs && make && make install
7d5c9c1b
FP
83 Use `script' or M-x compile to save the compilation log in
84 compile-NEW.log and compare it against an old one. The easiest way
85 to do that is to visit the old log in Emacs, change the version
86 number of the old Emacs to __, do the same with the new log and do
fe5b74fc
GM
87 M-x ediff. Especially check that Info files aren't built, and that
88 no autotools (autoconf etc) run.
7d5c9c1b 89
31045a5b 909. cd EMACS_ROOT_DIR && bzr tag TAG
1e1bbf41 91 TAG is emacs-XX.Y.ZZ for a pretest, emacs-XX.Y for a release.
7d5c9c1b 92
ab22a8a1
CY
93 Shortly before the release, cut the version branch also, and open
94 a Savannah support request asking for commits to the new branch to
95 be sent to the emacs-diffs mailing list (by default, the list
96 normally only gets commits to the trunk).
e8ccb869 97
31045a5b
GM
9810. Decide what compression schemes to offer.
99 For a release, at least gz and xz:
100 gzip --best -c emacs-NEW.tar > emacs-NEW.tar.gz
101 xz -c emacs-NEW.tar > emacs-NEW.tar.xz
102
103 Now you should upload the files to the GNU ftp server. In order to
140281f6 104 do that, you must be registered as an Emacs maintainer and have your
a0b4e66e
GM
105 GPG key acknowledged by the ftp people. For instructions, see
106 http://www.gnu.org/prep/maintain/html_node/Automated-Upload-Registration.html
31045a5b
GM
107 The simplest method is to use the gnulib <http://www.gnu.org/s/gnulib/>
108 script "build-aux/gnupload" to upload each FILE, like this:
109
110 For a pretest:
111 gnupload [--user your@gpg.key.email] --to alpha.gnu.org:emacs/pretest \
112 FILE.gz FILE.xz ...
113
114 For a release:
115 gnupload [--user your@gpg.key.email] --to ftp.gnu.org:emacs \
116 FILE.gz FILE.xz ...
117
118 You only need the --user part if you have multiple GPG keys and do
119 not want to use the default.
120 Obviously, if you do not have a fast uplink, be prepared for the
121 upload to take a while.
122
123
124 If you prefer to do it yourself rather than use gnupload:
125
126 For each FILE, create a detached GPG binary signature and a
127 clearsigned directive file like this:
ab22a8a1 128
140281f6
FP
129 gpg -b FILE
130 echo directory: emacs/pretest > FILE.directive (for a pretest)
131 echo directory: emacs > FILE.directive (for a release)
132 gpg --clearsign FILE.directive
7dee3a04
RF
133 Upload by anonymous ftp to ftp://ftp-upload.gnu.org/ the files FILE,
134 FILE.sig, FILE.directive.asc.
135 For a release, place the files in the /incoming/ftp directory.
136 For a pretest, place the files in /incoming/alpha instead, so that
137 they appear on ftp://alpha.gnu.org/.
140281f6 138
7d2707f9 13911. After five minutes, verify that the files are visible at
31045a5b 140 ftp://alpha.gnu.org/gnu/emacs/pretest/ for a pretest, or
41a3c7b0
FP
141 ftp://ftp.gnu.org/gnu/emacs/ for a release.
142
31045a5b
GM
143 Download them and check the signatures. Check they build.
144
7d2707f9 14512. For a pretest, announce it on emacs-devel and info-gnu-emacs@gnu.org.
184e2342
GM
146 Probably should also include the platform-testers list:
147 https://lists.gnu.org/mailman/listinfo/platform-testers
7d2707f9
GM
148 For a release, also announce it on info-gnu@gnu.org. (Probably
149 bcc the info- addresses to make it less likely that people will
150 followup on those lists.)
50b2d54c 151
7d2707f9 15213. For a release, update the Emacs homepage in the web repository.
50b2d54c 153 Also add the new NEWS file as NEWS.xx.y.
31045a5b 154 Maybe regenerate the html manuals, update the FAQ, etc, etc.