blob: 267fa2a17dd559cfdcdc9bc285ac0448ed28c251 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#! /bin/sh
LC_ALL=C LANGUAGE= nroff -c -me options-only.me | col -bpx | perl -ne '
$match = /^MAN-OPTIONS-BEGIN/ ... /^MAN-OPTIONS-END/;
if ($match > 1 and $match !~ /E0/) {
# Trim leading and trailing blank lines.
if (/^$/) {
$diversion .= $_ if $start;
} else {
print $diversion;
$diversion = "";
print;
$start = 1;
}
}'
|