blob: 37b4d6f2cd54bfafc7a161a01a2715334228acf2 (
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;
}
}'
|