ack/util/opt
George Koehler f91bc2804d Tune the installed manual pages.
This commit slightly improves the formatting of the manuals.  My
OpenBSD machine uses mandoc(1) to format manuals.  I check the manuals
with `mandoc -T lint` and fix most of the warnings.  I also make
other changes where mandoc didn't warn me.

roff(7) says, "Each sentence should terminate at the end of an input
line," but we often forgot this rule.  I insert some newlines after
sentences that had ended mid-line.

roff(7) also says that blank lines "are only permitted within literal
contexts."  I delete blank lines.  This removes some extra blank lines
from mandoc's output.  If I do want a blank line in the output, I call
".sp 1" to make it in man(7).  If I want a blank line in the source,
but not the output, I put a plain dot "." so roff ignores it.

Hyphens used for command-line options, like \-a, should be escaped by
a backslash.  I insert a few missing backslashes.

mandoc warns if the date in .TH doesn't look like a date.  Our manuals
had a missing date or the RCS keyword "$Revision$".  Git doesn't
expand RCS keywords.  I put in today's date, 2017-01-18.

Some manuals used tab characters in filled mode.  That doesn't work.
I use .nf to turn off filled mode, or I use .IP in man(7) to make the
indentation without a tab character.

ack(1) defined a macro .SB but never used it, so I delete the
definition.  I also remove a call to the missing macro .RF.

mandoc warns about empty paragraphs.  I deleted them.  mandoc also
warned about these macro pairs in anm(1):

    .SM
    .B text

The .SM did nothing because the .B text is on a different line.  I
changed each pair to .SB for small bold text.

I make a few other small changes.
2017-01-18 23:02:30 -05:00
..
alloc.c Rationalised use of #includes to be more standards-compliant. 2006-07-20 23:04:15 +00:00
alloc.h Changed configuration to now use malloc()/free() rather than sbrk(). 2006-07-20 22:59:25 +00:00
assert.h Header --> Id 1994-06-24 11:31:16 +00:00
backward.c Header --> Id 1994-06-24 11:31:16 +00:00
build.lua Move util/data into modules/src/em_data, for consistency with the other 2016-08-14 14:09:38 +02:00
cleanup.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
em_opt.6 Tune the installed manual pages. 2017-01-18 23:02:30 -05:00
ext.h Header --> Id 1994-06-24 11:31:16 +00:00
flow.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
getline.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
line.h Header --> Id 1994-06-24 11:31:16 +00:00
lookup.c Modified to include the appropriate header file rather than (badly) 2006-07-26 12:28:56 +00:00
lookup.h Header --> Id 1994-06-24 11:31:16 +00:00
main.c Rationalised use of #includes to be more standards-compliant. 2006-07-20 23:04:15 +00:00
mktab.y Improve flex correctness. 2015-03-23 00:09:27 +01:00
optim.h Header --> Id 1994-06-24 11:31:16 +00:00
param.h Header --> Id 1994-06-24 11:31:16 +00:00
pattern.h Header --> Id 1994-06-24 11:31:16 +00:00
patterns Fine tuning of some patterns 1994-10-19 14:09:26 +00:00
peephole.c Fix an insidious 64-bitness bug which was causing incorrectly optimised code. 2016-03-17 22:30:24 +01:00
pop_push.awk Renamed 'switch' variable to avoid conflict with a keyword in modern awks. 2010-08-01 10:35:04 +00:00
pop_push.h Added pop_push.h 1991-12-18 09:47:19 +00:00
process.c Header --> Id 1994-06-24 11:31:16 +00:00
proinf.h Header --> Id 1994-06-24 11:31:16 +00:00
putline.c Header --> Id 1994-06-24 11:31:16 +00:00
reg.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
scan.l First milestone of replacing the build system. 2013-05-12 20:45:55 +01:00
special.c Header --> Id 1994-06-24 11:31:16 +00:00
tes.c Add enough return types to the K&R C that the ACK builds (on Linux) using clang 2016-11-10 22:04:18 +01:00
tes.h Header --> Id 1994-06-24 11:31:16 +00:00
testopt Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.) 2006-07-18 17:20:46 +00:00
types.h Header --> Id 1994-06-24 11:31:16 +00:00
util.c Rationalised use of #includes to be more standards-compliant. 2006-07-20 23:04:15 +00:00
var.c Replaced references to /usr/tmp with references to /tmp. 2005-06-24 22:08:47 +00:00