Next: Derived Files, Previous: Adding Code, Up: Additions [Contents][Index]
gawk
to a New Operating SystemIf you want to port gawk
to a new operating system, there are
several steps:
gawk
and the other ports. Avoid gratuitous
changes to the system-independent parts of the code. If at all possible,
avoid sprinkling ‘#ifdef’s just for your port throughout the
code.
If the changes needed for a particular system affect too much of the code, I probably will not accept them. In such a case, you can, of course, distribute your changes on your own, as long as you comply with the GPL (see section GNU General Public License).
gawk
are maintained by other
people. Thus, you should not change them
unless it is for a very good reason; i.e., changes are not out of the
question, but changes to these files are scrutinized extra carefully.
These are all the files in the support directory
within the gawk
distribution. See there.
gettext
).
You should not change them either, unless it is for a very
good reason. The files are
ABOUT-NLS,
config.guess,
config.rpath,
config.sub,
depcomp,
INSTALL,
install-sh,
missing,
mkinstalldirs,
and
ylwrap.
gawk
on their systems. If no-one
volunteers to maintain a port, it becomes unsupported and it may
be necessary to remove it from the distribution.
Each port’s gawkmisc.??? file has a suffix reminiscent of the machine or operating system for the port—for example, pc/gawkmisc.pc and vms/gawkmisc.vms. The use of separate suffixes, instead of plain gawkmisc.c, makes it possible to move files from a port’s subdirectory into the main subdirectory, without accidentally destroying the real gawkmisc.c file. (Currently, this is only an issue for the PC operating system ports.)
gawk
for your system.
Following these steps makes it much easier to integrate your changes
into gawk
and have them coexist happily with other
operating systems’ code that is already there.
In the code that you supply and maintain, feel free to use a coding style and brace layout that suits your taste.
Next: Derived Files, Previous: Adding Code, Up: Additions [Contents][Index]