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