1 Instructions to create pretest or release tarballs. -*- coding: utf-8 -*-
2 -- originally written by Gerd Moellmann, amended by Francesco Potortì
3 with the initial help of Eli Zaretskii
6 Steps to take before starting on the first pretest in any release sequence:
8 0. The release branch (e.g. emacs-25) should already have been made
9 and you should use it for all that follows. Diffs from this
10 branch should be going to the emacs-diffs mailing list.
12 1. Decide on versions of automake and autoconf, and ensure you will
13 have them available for the duration of the release process.
15 2. Consider increasing the value of the variable
16 'customize-changed-options-previous-release' in cus-edit.el to
17 refer to a newer version of Emacs. (This is probably needed only
18 when preparing the first pretest for a major Emacs release.)
19 Commit cus-edit.el if changed.
21 3. Remove any old pretests from ftp://alpha.gnu.org/gnu/emacs/pretest.
22 You can use 'gnupload --delete' (see below for more gnupload details).
24 General steps (for each step, check for possible errors):
26 1. git pull # fetch from the repository
27 git status # check for locally modified files
29 Ensure that you have a clean, unmodified state.
30 If you switched in-place from another branch to the release branch,
31 there could be inappropriate generated ignored files left over.
32 You might want to use "git status --ignored" to check for such files,
33 or some form of "git clean -x". It's probably simpler and safer to
34 make a new working directory exclusively for the release branch.
36 2. Regenerate the etc/AUTHORS file:
37 M-: (require 'authors) RET
40 (This first updates the current versioned ChangeLog.N)
42 If there is an "*Authors Errors*" buffer, address the issues.
43 If there was a ChangeLog typo, fix the relevant entry.
44 If a file was deleted or renamed, consider adding an appropriate
45 entry to authors-ignored-files, authors-valid-file-names, or
46 authors-renamed-files-alist.
48 If necessary, repeat 'C-u M-x authors' after making those changes.
49 Save the "*Authors*" buffer as etc/AUTHORS.
50 Check the diff looks reasonable. Maybe add entries to
51 authors-ambiguous-files or authors-aliases, and repeat.
52 Commit any fixes to authors.el.
54 3. Set the version number (M-x load-file RET admin/admin.el RET, then
55 M-x set-version RET). For a pretest, start at version .90. After
56 .99, use .990 (so that it sorts).
58 The final pretest should be a release candidate. Set the version
59 number to that of the actual release. Pick a date about a week
60 from now when you intend to make the release. Use M-x
61 add-release-logs to add entries to etc/HISTORY and the ChangeLog
62 file. It's best not to commit these files until the release is
63 actually made. Merge the entries from (unversioned) ChangeLog
64 into the top of the current versioned ChangeLog.N and commit that
65 along with etc/HISTORY. Then you can tag that commit as the
68 Name the tar file as emacs-XX.Y-rc1.tar. If all goes well in the
69 following week, you can simply rename the file and use it for the
70 actual release. If you need another release candidate, remember
71 to adjust the ChangeLog and etc/HISTORY entries.
73 If you need to change only a file(s) that cannot possibly affect
74 the build (README, ChangeLog, NEWS, etc.) then rather than doing
75 an entirely new build, it is better to unpack the existing
76 tarfile, modify the file(s), and tar it back up again.
78 Never replace an existing tarfile! If you need to fix something,
79 always upload it with a different name.
81 4. autoreconf -i -I m4 --force
85 make -C etc/refcards clean
87 5. Commit ChangeLog.N, etc/AUTHORS, lisp/ldefs-boot.el, and the
88 files changed by M-x set-version.
90 If someone else made a commit between step 1 and now,
91 you need to repeat from step 4 onwards. (You can commit the files
92 from step 2 and 3 earlier to reduce the chance of this.)
94 6. ./make-dist --snapshot --no-compress
96 Check the contents of the new tar with admin/diff-tar-files
97 against the previous release (if this is the first pretest) or the
98 previous pretest. If you did not make the previous pretest
99 yourself, find it at <ftp://alpha.gnu.org/gnu/emacs/pretest>.
100 Releases are of course at <ftp://ftp.gnu.org/pub/gnu/emacs/>.
102 If this is the first pretest of a major release, just comparing
103 with the previous release may overlook many new files. You can try
104 something like 'find . | sort' in a clean repository, and compare the
105 results against the new tar contents.
107 7. tar -xf emacs-NEW.tar; cd emacs-NEW
108 ./configure --prefix=/tmp/emacs && make && make install
109 Use 'script' or M-x compile to save the compilation log in
110 compile-NEW.log and compare it against an old one. The easiest way
111 to do that is to visit the old log in Emacs, change the version
112 number of the old Emacs to __, do the same with the new log and do
113 M-x ediff. Especially check that Info files aren't built, and that
114 no autotools (autoconf etc) run.
116 8. cd EMACS_ROOT_DIR && git tag -a TAG && git push origin tag TAG
117 TAG is emacs-XX.Y.ZZ for a pretest, emacs-XX.Y for a release.
119 9. Decide what compression schemes to offer.
120 For a release, at least gz and xz:
121 gzip --best -c emacs-NEW.tar > emacs-NEW.tar.gz
122 xz -c emacs-NEW.tar > emacs-NEW.tar.xz
123 For pretests, just xz is probably fine (saves bandwidth).
125 Now you should upload the files to the GNU ftp server. In order to
126 do that, you must be registered as an Emacs maintainer and have your
127 GPG key acknowledged by the ftp people. For instructions, see
128 http://www.gnu.org/prep/maintain/html_node/Automated-Upload-Registration.html
129 The simplest method to upload is to use the gnulib
130 <http://www.gnu.org/s/gnulib/> script "build-aux/gnupload":
133 gnupload [--user your@gpg.key.email] --to alpha.gnu.org:emacs/pretest \
137 gnupload [--user your@gpg.key.email] --to ftp.gnu.org:emacs \
140 You only need the --user part if you have multiple GPG keys and do
141 not want to use the default.
142 Obviously, if you do not have a fast uplink, be prepared for the
143 upload to take a while.
146 If you prefer to do it yourself rather than use gnupload:
148 For each FILE, create a detached GPG binary signature and a
149 clearsigned directive file like this:
152 echo directory: emacs/pretest > FILE.directive (for a pretest)
153 echo directory: emacs > FILE.directive (for a release)
154 gpg --clearsign FILE.directive
155 Upload by anonymous ftp to ftp://ftp-upload.gnu.org/ the files FILE,
156 FILE.sig, FILE.directive.asc.
157 For a release, place the files in the /incoming/ftp directory.
158 For a pretest, place the files in /incoming/alpha instead, so that
159 they appear on ftp://alpha.gnu.org/.
161 10. After five minutes, verify that the files are visible at
162 ftp://alpha.gnu.org/gnu/emacs/pretest/ for a pretest, or
163 ftp://ftp.gnu.org/gnu/emacs/ for a release.
165 Download them and check the signatures. Check they build.
167 11. Send an announcement to: emacs-devel, and bcc: info-gnu-emacs@gnu.org.
168 For a pretest, also bcc: platform-testers@gnu.org.
169 For a release, also bcc: info-gnu@gnu.org.
170 (The reason for using bcc: is to make it less likely that people
171 will followup on the wrong list.)
172 See the info-gnu-emacs mailing list archives for the form
173 of past announcements. The first pretest announcement, and the
174 release announcement, should have more detail.
176 12. After a release, update the Emacs pages as below.
179 UPDATING THE EMACS WEB PAGES AFTER A RELEASE
181 As soon as possible after a release, the Emacs web pages should be updated.
182 Anyone with write access to the Emacs code repository can do this.
183 For instructions, see <http://savannah.gnu.org/cvs/?group=emacs>.
184 Changes go live more or less as soon as they are committed.
186 The pages to update are:
188 emacs.html (for a new major release, a more thorough update is needed)
190 add the new NEWS file as news/NEWS.xx.y
192 Use M-x make-manuals from admin/admin.el to regenerate the html
193 manuals in manual/. If there are new manuals, add appropriate index
194 pages in manual/ and add them to manual/index.html. In the
195 manual/html_node directory, delete any old manual pages that are no
198 Tar up the generated html_node/emacs/ and elisp/ directories and update
199 the files manual/elisp.html_node.tar.gz and emacs.html_node.tar.gz.
201 Use M-x make-manuals-dist from from admin/admin.el to update the
202 manual/texi/ tarfiles.
204 Add compressed copies of the main info pages from the tarfile to manual/info/.
206 Update the refcards/pdf/ and ps/ directories, and also
207 refcards/emacs-refcards.tar.gz (use make -C etc/refcards pdf ps dist).
209 Browsing <http://web.cvs.savannah.gnu.org/viewvc/?root=emacs> is one
210 way to check for any files that still need updating.