*** empty log message ***
[bpt/guile.git] / HACKING
1 Here are some guidelines for working on the Guile source tree at GNU.
2
3 - As for any part of Project GNU, changes to Guile should follow the
4 GNU coding standards. The standards are available via anonymous FTP
5 from prep.ai.mit.edu, as /pub/gnu/standards/standards.texi and
6 make-stds.texi.
7
8 - Check Makefile.in and configure files into CVS, as well as any files
9 used to create them (Makefile.am, configure.in); don't check in
10 Makefiles or header files generated by configuration scripts. The
11 general rule is that you should be able to check out a working
12 directory of Guile from CVS, and then type "configure" and "make".
13
14 - Make sure your changes compile and work, at least on your own
15 machine, before checking them into the main branch of the Guile
16 repository. If you really need to check in untested changes, make a
17 branch.
18
19 - When you make a user-visible change (i.e. one that should be
20 documented, and appear in NEWS, put an asterisk in column zero of the
21 start of the ChangeLog entry, like so:
22
23 Sat Aug 3 01:27:14 1996 Gary Houston <ghouston@actrix.gen.nz>
24
25 * * fports.c (scm_open_file): don't return #f, throw error.
26
27 - Include each log entry in both the ChangeLog and in the CVS logs.
28 If you're using Emacs, the pcl-cvs interface to CVS has features to
29 make this easier; it checks the ChangeLog, and generates good default
30 CVS log entries from that.
31
32 - There's no need to keep a change log for documentation files. This
33 is because documentation is not susceptible to bugs that are hard to
34 fix. Documentation does not consist of parts that must interact in a
35 precisely engineered fashion; to correct an error, you need not know
36 the history of the erroneous passage. (This is copied from the GNU
37 coding standards.)
38
39 - If you add or remove files, don't forget to update the 'dist-dir'
40 target in the relevant Makefile.in files, so the snapshot and
41 distribution processes will work.
42
43 - Make sure you have papers from people before integrating their
44 changes or contributions. This is very frustrating, but very
45 important to do right. From maintain.texi, "Information for
46 Maintainers of GNU Software":
47
48 When incorporating changes from other people, make sure to follow the
49 correct procedures. Doing this ensures that the FSF has the legal
50 right to distribute and defend GNU software.
51
52 For the sake of registering the copyright on later versions ofthe
53 software you need to keep track of each person who makes significant
54 changes. A change of ten lines or so, or a few such changes, in a
55 large program is not significant.
56
57 *Before* incorporating significant changes, make sure that the person
58 has signed copyright papers, and that the Free Software Foundation has
59 received them.
60
61 If you receive contributions you want to use from someone, let me know
62 and I'll take care of the administrivia. Put the contributions aside
63 until we have the necessary papers.
64
65
66
67 Jim Blandy