diff options
author | G. Branden Robinson <g.branden.robinson@gmail.com> | 2019-09-10 00:11:27 +1000 |
---|---|---|
committer | G. Branden Robinson <g.branden.robinson@gmail.com> | 2019-09-10 01:01:03 +1000 |
commit | 592275f73fd364627f82184e64c52be2089c2be3 (patch) | |
tree | 364e2cb6c7911fd9f2da512776f0ee5b511ee363 /src/utils/pfbtops | |
parent | 3c413d36443c014dd7b55fe268562700bbcd0f03 (diff) | |
download | groff-git-592275f73fd364627f82184e64c52be2089c2be3.tar.gz |
**/*.man: Downcase man page titles.
...except for glilypond and roff2*, which did not require it.
Here's a sed script for the aid of those who have a corpus of man pages
to migrate.
# Downcase man page titles.
#
# Use the first line to skip any .TH lines that require
# special handling, perhaps because the name of the
# command gets externally macro-expanded. In groff, the
# "roff2.1.man" page is an example.
#
# This script operates _only_ on .TH lines.
#
# usage: sed -i -f this_script.sed your_man_page.1 ...
/@ROFF2MODE@/b
/^\.\s*TH/{
h
s/^\.\s*TH \+\([^ ]\+\) .*/\1/
y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/
G
s/\([^ ]\+\)\n\(^\.\s*TH \+\)[^ ]\+\( .*\)/\2\1\3/
}
Diffstat (limited to 'src/utils/pfbtops')
-rw-r--r-- | src/utils/pfbtops/pfbtops.1.man | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/utils/pfbtops/pfbtops.1.man b/src/utils/pfbtops/pfbtops.1.man index e8919c73f..9f9796d0e 100644 --- a/src/utils/pfbtops/pfbtops.1.man +++ b/src/utils/pfbtops/pfbtops.1.man @@ -1,4 +1,4 @@ -.TH PFBTOPS @MAN1EXT@ "@MDATE@" "groff @VERSION@" +.TH pfbtops @MAN1EXT@ "@MDATE@" "groff @VERSION@" .SH NAME pfbtops \- translate Printer Font Binary files to PostScript ASCII . |