plan9port/src/cmd/troff
David du Colombier 657f699ef7 include: define _DEFAULT_SOURCE
Since glibc 2.20, the _BSD_SOURCE and _SVID_SOURCE macros are
deprecated in favor of the _DEFAULT_SOURCE macro.

See https://sourceware.org/glibc/wiki/Release/2.20#Packaging_Changes

Change-Id: I18dd6a698f3f5aa51d1e45bf53b031bb061e17e8
Reviewed-on: https://plan9port-review.googlesource.com/1500
Reviewed-by: David du Colombier <0intro@gmail.com>
2016-11-20 09:37:58 +00:00
..
.cvsignore
cvt
dwbinit.c troff: avoid crash if home == NULL 2009-12-27 09:22:43 -08:00
dwbinit.h
ext.h
find
FIXES
fns.h
hytab.c
mbwc.c convert to 4-byte UTF-8 and 32-bit Rune 2009-09-11 17:03:06 -04:00
mkfile
n1.c
n2.c include: define _DEFAULT_SOURCE 2016-11-20 09:37:58 +00:00
n3.c
n4.c
n5.c
n6.c silence more warnings 2012-10-21 12:04:56 -04:00
n7.c include: define _DEFAULT_SOURCE 2016-11-20 09:37:58 +00:00
n8.c
n9.c
n10.c
ni.c
README
suftab.c
t6.c silence more warnings 2012-10-21 12:04:56 -04:00
t10.c
t11.c
tdef.h INSTALL: fix build on Snow Leopard 2009-09-11 13:51:50 -04:00
unansi

To make troff (actually a.out):

	make

You will also need to write a driver for your favorite output device.
d202.c provides a model, although it is specialized to a machine no
one has.  There are also a variety of postscript drivers that are the
best thing to use if you have a postscript device.

You will also have to make a DESC file for your typesetter and some
font description files; see dev202 for examples.  These describe the
named characters, widths, kerning information, and output codes.

Nroff is the same program as troff, so you should

	cp a.out /usr/bin/troff
	ln /usr/bin/troff /usr/bin/nroff

or the equivalent.

You will also need terminal description files for your terminals; see
tab.37, tab.450 and tab.lp for examples.

Troff uses files that are normally stored in /usr/lib/font;
macro packages are in /usr/lib/tmac; and nroff tables are in
/usr/lib/term.  You can edit tdef.h to change these assumptions.

There have been a few features since the last version, and a number of
significant internal changes.  Not all are improvements, of course.
Most of the more recent changes, including bug fixes, are in FIXES,
which you should read also.