New libtool: 1.0e.
[bpt/guile.git] / HACKING
CommitLineData
795b4217
JB
1Here are some guidelines for working on the Guile source tree at GNU.
2
eb4194d6
JB
3- We use CVS to manage the Guile sources. The repository lives on
4totoro.red-bean.com, in /u/src/master; you will need an account on
5that machine to access the repository. I recommend using the cvs
6pserver protocol; thus, you should use the following as your CVS root:
7
8 :pserver:USER@guile-cvs.red-bean.com:/u/src/master
9
10Either set your CVSROOT environment variable to that, or give it as
11the value of the global -d option to CVS when you check out a working
12directory.
13
14If you want to use SSH for security, set your CVS_RSH environment
15variable to ssh, and then use the following as your CVS root:
16
17 :ext:guile-cvs.red-bean.com:/u/src/master
18
19The Guile sources live in several modules:
20
21 - guile-core --- the interpreter, QuickThreads, and ice-9
e19268af
JB
22 - guile-doc --- documentation in progress. When complete, this will
23 be incorporated into guile-core.
eb4194d6
JB
24 - guile-tcltk --- the Guile/Tk interface
25 - guile-rgx-ctax --- the Guile/Rx interface, and the ctax implementation
26 - guile-scsh --- the port of SCSH to guile, talk to Gary Houston
eb4194d6 27
795b4217
JB
28- As for any part of Project GNU, changes to Guile should follow the
29GNU coding standards. The standards are available via anonymous FTP
80b4c4fc
JB
30from prep.ai.mit.edu, as /pub/gnu/standards/standards.texi and
31make-stds.texi.
795b4217 32
350294b1
JB
33- Check Makefile.in and configure files into CVS, as well as any files
34used to create them (Makefile.am, configure.in); don't check in
35Makefiles or header files generated by configuration scripts. The
36general rule is that you should be able to check out a working
37directory of Guile from CVS, and then type "configure" and "make".
38
795b4217
JB
39- Make sure your changes compile and work, at least on your own
40machine, before checking them into the main branch of the Guile
41repository. If you really need to check in untested changes, make a
42branch.
43
44- When you make a user-visible change (i.e. one that should be
45documented, and appear in NEWS, put an asterisk in column zero of the
46start of the ChangeLog entry, like so:
47
48Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
49
50* * fports.c (scm_open_file): don't return #f, throw error.
51
fa3f45cc
JB
52When you've written a NEWS entry and updated the documentation, go
53ahead and remove the asterisk. I will use the asterisks to find and
54document changes that haven't been dealt with before a release.
55
795b4217
JB
56- Include each log entry in both the ChangeLog and in the CVS logs.
57If you're using Emacs, the pcl-cvs interface to CVS has features to
58make this easier; it checks the ChangeLog, and generates good default
59CVS log entries from that.
60
30d14d55
JB
61- There's no need to keep a change log for documentation files. This
62is because documentation is not susceptible to bugs that are hard to
63fix. Documentation does not consist of parts that must interact in a
64precisely engineered fashion; to correct an error, you need not know
65the history of the erroneous passage. (This is copied from the GNU
66coding standards.)
67
733943b9
TT
68- If you add or remove files, don't forget to update the appropriate
69part of the relevant Makefile.am files, and regenerate the
70Makefile.in. If you forget this, the snapshot and distribution
71processes will not work.
795b4217
JB
72
73- Make sure you have papers from people before integrating their
74changes or contributions. This is very frustrating, but very
75important to do right. From maintain.texi, "Information for
76Maintainers of GNU Software":
77
78 When incorporating changes from other people, make sure to follow the
79 correct procedures. Doing this ensures that the FSF has the legal
80 right to distribute and defend GNU software.
81
82 For the sake of registering the copyright on later versions ofthe
83 software you need to keep track of each person who makes significant
84 changes. A change of ten lines or so, or a few such changes, in a
85 large program is not significant.
86
87 *Before* incorporating significant changes, make sure that the person
88 has signed copyright papers, and that the Free Software Foundation has
89 received them.
90
91If you receive contributions you want to use from someone, let me know
92and I'll take care of the administrivia. Put the contributions aside
93until we have the necessary papers.
94
fa3f45cc
JB
95- When you make substantial changes to a file, add the current year to
96the list of years in the copyright notice at the top of the file.
795b4217 97
f84f77f5
JB
98- [From Mikael Djurfeldt] When working on the Guile internals, it is
99quite often practical to implement a scheme-level procedure which
100helps you examine the feature you're working on.
101
102Examples of such procedures are: pt-size, debug-hand and
103current-pstate.
104
105I've now put #ifdef GUILE_DEBUG around all such procedures, so that
106they are not compiled into the "normal" Guile library. Please do the
107same when you add new procedures/C functions for debugging purpose.
108
109You can define the GUILE_DEBUG flag by passing --enable-guile-debug to
110the configure script.
111
795b4217
JB
112
113Jim Blandy