1 ================================================================
4 * This file attempts to describe the rules to use when hacking
7 * Don't put this file into the distribution. Don't mention it in the
11 ================================================================
14 * If you incorporate a change from somebody on the net:
15 First, if it is a large change, you must make sure they have signed the
16 appropriate paperwork.
17 Second, be sure to add their name and email address to THANKS
19 * If a change fixes a test, mention the test in the ChangeLog entry.
21 * If somebody reports a new bug, mention his name in the ChangeLog entry
22 and in the test case you write. Put him into THANKS.
24 * The correct response to most actual bugs is to write a new test case
25 which demonstrates the bug. Then fix the bug, re-run the test suite,
26 and check everything in.
28 * Some files in the automake package are not owned by automake. These
29 files should never be edited here. These files are
31 INSTALL (autoconf-patches@gnu.org),
32 config.guess, config.sub (config-patches@gnu.org),
33 texinfo.tex (bug-texinfo@gnu.org),
34 Most of them are updated before release with `make fetch'.
36 * Changes other than bug fixes must be mentioned in NEWS
39 ================================================================
42 * We've adopted the convention that internal AC_SUBSTs should be
43 named with a leading `am__', and internally generated targets should
44 be named with a leading `am--'. This convention is very new
45 (as of Feb 7 2001) and so it isn't yet universally used. But all
46 new code should use it.
48 We used to use `_am_' as the prefix for an internal AC_SUBST.
49 However, it turns out that NEWS-OS 4.2R complains if a Makefile
50 variable begins with `_'. Yay for them. I changed the target
51 naming convention just to be safe.
53 ================================================================
56 * Always use $(...) and not ${...}
58 * Use `:', not `true'. Use `exit 1', not `false'.
60 * Use `##' comments liberally. Comment anything even remotely
63 * Never use basename or dirname. Instead use sed
65 * Do not use `cd' within back-quotes, use `$(am__cd)' instead.
66 Otherwise the directory name may be printed, depending on CDPATH.
68 * For install and uninstall rules, if a loop is required, it should be
69 silent. Then the body of the loop itself should print each
70 "important" command it runs. The printed commands should be preceded
74 ================================================================
75 = Editing automake.in and aclocal.in
77 * Indent using GNU style. For historical reasons, the perl code
78 contains portions indented using Larry Wall's style (perl-mode's
79 default), and other portions using the GNU style (cperl-mode's
80 default). Write new code using GNU style.
82 * Don't use & for function calls, unless required.
83 The use of & prevents prototypes from being checked.
84 Just as above, don't change massively all the code to strip the
85 &, just convert the old code as you work on it, and write new
91 ================================================================
92 = Working with git/CVS
94 * To regenerate dependent files created by aclocal and automake,
95 use the `bootstrap' script. It uses the code from the source
96 tree, so the resulting files (aclocal.m4 and Makefile.in) should
97 be the same as you would get if you install this version of
98 automake and use it to generate those files.
100 * Dependent files aclocal.m4, configure and Makefile.in in all
101 directories should be up to date in the git repository, so that
102 the changes in them can be easily noticed and analyzed.
104 * Avoid merge commits on the master branch of the public git repository.
105 For unpublished changes in your development tree, it's easiest to
106 rebase against the current master before applying them, this preserves
109 * For changes to appear in more than one branch, apply them to the
110 master branch and then cherry-pick them to the stable branch from
111 master if possible. This keeps the master uncluttered and preserves
112 meta-data on the stable branches.
115 ================================================================
118 * Use "make check" and "make maintainer-check" liberally
120 * Make sure each test file is executable
122 * Use `keep_testdirs=yes' to keep test directories for successful
125 ================================================================
128 * Fetch new versions of the files that are maintained by the FSF.
129 Commit. Unfortunately you need an FSF account to do this.
130 (You can also use `make fetch', but that is still woefully incomplete.)
132 * Update NEWS. For an alpha release, update README-alpha.
134 * Update the version number in configure.ac.
135 (The idea is that every other alpha number will be a net release.
136 The repository will always have its own "odd" number so we can easily
137 distinguish net and repo versions.)
141 * Run ./bootstrap, ./configure, make.
143 * NOTE: the next step has not been tested yet with git, so be careful.
145 * Run `make git-release'.
146 This will run distcheck to create the tarballs, commit the last
147 NEWS/configure.ac/ChangeLog changes, tag the repository, sign
148 the tarballs, and upload them.
149 Use `make GNUPLOADFLAGS="--user key" git-release' to sign with
152 * Update version number in configure.ac to next alpha number.
153 Re-run ./bootstrap and commit.
155 * Send announcement at least to autotools-announce@gnu.org, and
156 automake@gnu.org. If not an alpha, announcement must also go to
161 Copyright (C) 2003, 2007 Free Software Foundation, Inc.
163 This program is free software; you can redistribute it and/or modify
164 it under the terms of the GNU General Public License as published by
165 the Free Software Foundation; either version 3, or (at your option)
168 This program is distributed in the hope that it will be useful,
169 but WITHOUT ANY WARRANTY; without even the implied warranty of
170 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
171 GNU General Public License for more details.
173 You should have received a copy of the GNU General Public License
174 along with this program. If not, see <http://www.gnu.org/licenses/>.