* admin/make-tarball.txt: Comment.
[emacs.git] / admin / make-tarball.txt
blob1af203265435bc4d9ac8594974b894daaf3846e2
1 Instructions to create pretest or release tarballs.
2 -- originally written by Gerd Moellmann, amended by Francesco Potortì
3    with the initial help of Eli Zaretskii
5 For each step, check for possible errors.
7 1.  `bzr update' (for a bound branch), or `bzr pull'.
8      bzr status # check for locally modified files
10 2.  Bootstrap to make 100% sure all elc files are up-to-date, and to
11     make sure that the later tagged version will bootstrap, should it be
12     necessary to check it out.
14 3.  Regenerate Emacs' etc/AUTHORS file (M-x load-file RET
15     lisp/emacs-lisp/authors.el RET, then M-x authors RET, then save
16     the *Authors* buffer).  This may require fixing syntactically
17     incorrect ChangeLog entries beforehand.
19 4.  Set the version number (M-x load-file RET admin/admin.el RET, then
20     M-x set-version RET).  For a release, add released change log
21     entries (M-x add-release-logs RET).
23     For a pretest, start at version .90.  After .99, use .990 (so that
24     it sorts).
26     If needed, increment the value of the variable
27     `customize-changed-options-previous-release' in cus-edit.el to
28     refer to a newer release of Emacs.  (This is probably needed only
29     when preparing a major Emacs release, or branching for it.)
31 5.  Edit configure.in so that maintainer-mode is off by default.
32     (FIXME - need to find a better way of dealing with this.
33      Or maybe it's fine and indeed correct to leave it on?
34      See http://lists.gnu.org/archive/html/emacs-devel/2011-03/msg00859.html
35      and subsequent.)
37      autoreconf -i -I m4 --force
38      make bootstrap
40 6.  Commit etc/AUTHORS, all the files changed by M-x set-version, and
41     lisp/cus-edit.el (if modified).
42     Copy lisp/loaddefs.el to lisp/ldefs-boot.el and commit lisp/ldefs-boot.el.
43     For a release, also commit the ChangeLog files in all directories.
45 7.   make-dist --snapshot.  Check the contents of the new tar with
46     admin/diff-tar-files against an older tar file.  Some old pretest
47     tarballs may be found at <ftp://alpha.gnu.org/gnu/emacs/pretest>;
48     old release tarballs are at <ftp://ftp.gnu.org/pub/gnu/emacs/>.
50     If this is the first pretest of a major release, just comparing
51     with the previous release may overlook many new files.  You can try
52     something like `find . | sort' in a clean bzr tree, and compare the
53     results against the new tar contents.
55 8.   xdelta delta emacs-OLD.tar.gz emacs-NEW.tar.gz emacs-OLD-NEW.xdelta
57 9.   tar -zxf emacs-NEW.tar.gz; cd emacs-NEW
58      ./configure && make && make -n install
59     Use `script' or M-x compile to save the compilation log in
60     compile-NEW.log and compare it against an old one.  The easiest way
61     to do that is to visit the old log in Emacs, change the version
62     number of the old Emacs to __, do the same with the new log and do
63     M-x ediff.  Especially check that Info files aren't built.
65 10.  cd EMACS_ROOT_DIR; cvs tag TAG
66     TAG is EMACS_PRETEST_XX_YY_ZZZ for a pretest, EMACS_XX_YY for a
67     release.
69     Shortly before the release, cut the branch with the following commands:
71     cvs rtag EMACS_`NUMBER'_BASE
72     cvs rtag -b EMACS_`NUMBER'_RC -r EMACS_`NUMBER'_BASE
74     where `NUMBER' is the major version number of the release.  This
75     makes it easier to see what changes have been applied to the
76     branch with:
78     cvs diff -r EMACS_`NUMBER'_BASE -r EMACS_`NUMBER'_RC
80     or merge changes back to the trunk with "cvs update -j", if
81     necessary.
83     After doing this, increase the version number on the trunk as per
84     step 4.
86     Also, open a Savannah support request asking for commits to the
87     new branch to be sent to the emacs-diffs mailing list (by default,
88     the list normally only gets commits to the trunk).
90 11. Now you should upload the files to the GNU ftp server.  In order to
91     do that, you must be registered as an Emacs maintainer and have your
92     GPG key acknowledged by the ftp people.  Mail <ftp-upload@gnu.org>
93     for instructions.  Once you are there, for each file FILE to be
94     released, create a detached GPG binary signature and a clearsigned
95     directive file like this:
96      gpg -b FILE
97      echo directory: emacs/pretest > FILE.directive      (for a pretest)
98      echo directory: emacs > FILE.directive              (for a release)
99      gpg --clearsign FILE.directive
100     Upload by anonymous ftp to ftp://ftp-upload.gnu.org/ the files FILE,
101     FILE.sig, FILE.directive.asc.
102     For a release, place the files in the /incoming/ftp directory.
103     For a pretest, place the files in /incoming/alpha instead, so that
104     they appear on ftp://alpha.gnu.org/.
106     For a release, upload a bz2 tarfile as well; this can save a lot
107     of bandwidth.
109 12. After five minutes, verify that the files are visible at
110     ftp://alpha.gnu.org/gnu/emacs/pretest/ for a pretest, at
111     ftp://ftp.gnu.org/gnu/emacs/ for a release.
113 13. For a pretest, announce it on emacs-devel and BCC the pretesters.
114     For a release, announce it on info-gnu@gnu.org,
115     info-gnu-emacs@gnu.org, and emacs-devel.