annotate INSTALL.CVS @ 90184:9e5e2f01c7ab

*** empty log message ***
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Sun, 22 May 2005 08:23:26 +0000
parents dbc050262b30
children 7beb78bc1f8e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
89912
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
1 Building and Installing Emacs from CVS
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
2
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
3 Some of the files that are included in the Emacs tarball, such as
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
4 byte-compiled Lisp files, are not stored in the CVS repository.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
5 Therefore, to build from CVS you must run "make bootstrap"
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
6 instead of just "make":
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
7
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
8 $ ./configure
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
9 $ make bootstrap
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
10
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
11 The bootstrap process makes sure all necessary files are rebuilt
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
12 before it builds the final Emacs binary.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
13
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
14 Normally, it is not necessary to use "make bootstrap" after every CVS
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
15 update. Unless there are problems, we suggest the following
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
16 procedure:
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
17
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
18 $ ./configure
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
19 $ make
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
20 $ cd lisp
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
21 $ make recompile EMACS=../src/emacs
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
22 $ cd ..
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
23 $ make
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
24
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
25 (If you want to install the Emacs binary, type "make install" instead
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
26 of "make" in the last command.)
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
27
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
28 Occasionally the file "lisp/loaddefs.el" will need be updated to reflect
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
29 new autoloaded functions. If you see errors about undefined lisp
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
30 functions during compilation, that may be the reason. Another symptom
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
31 may be an error saying that "loaddefs.el" could not be found; this is
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
32 due to a change in the way loaddefs.el was handled in CVS, and should
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
33 only happen once, for users that are updating old CVS trees.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
34
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
35 To update loaddefs.el, do:
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
36
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
37 $ cd lisp
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
38 $ make autoloads EMACS=../src/emacs
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
39
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
40 If either of above procedures fails, try "make bootstrap".
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
41
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
42 Users of non-Posix systems (MS-Windows etc.) should run the
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
43 platform-specific configuration scripts (nt/configure.bat, config.bat,
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
44 etc.) before "make bootstrap" or "make"; the rest of the procedure is
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
45 applicable to those systems as well.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
46
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
47 Questions, requests, and bug reports about the CVS versions of Emacs
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
48 should be sent to emacs-pretest-bug@gnu.org rather than gnu.emacs.help
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
49 or gnu.emacs.bug. Ideally, use M-x report-emacs-bug RET which will
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
50 send it to the proper place.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
51
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
52
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
53 Note on using SSH to access the CVS repository from inside Emacs
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
54 ----------------------------------------------------------------
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
55
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
56 Write access to the CVS repository requires using SSH v2.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
57
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
58 If you execute cvs commands inside Emacs, specifically if you use
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
59 pcl-cvs, output from CVS may be lost due to a problem in the
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
60 interface between ssh, cvs, and libc. Corrupted checkins have
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
61 also been rumored to have happened.
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
62
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
63 To fix the problem, save the following script into a file, make it
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
64 executable, and set CVS_RSH to the file name of the script:
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
65
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
66 #!/bin/bash
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
67 exec 2> >(exec cat >&2 2>/dev/null)
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
68 exec ssh "$@"
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
69
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
70 This may be combined with the following entry in ~/.ssh/config to
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
71 simplify accessing the CVS repository:
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
72
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
73 Host subversions.gnu.org
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
74 Protocol 2
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
75 ForwardX11 no
dbc050262b30 Added on unicode branch
Miles Bader <miles@gnu.org>
parents:
diff changeset
76 User YOUR_USERID