1
0
Fork 0
man-db/manual/print-options
Daniel Baumann 1fa764a8d3
Adding upstream version 2.13.1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-21 08:13:55 +02:00

14 lines
366 B
Bash
Executable file

#! /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;
}
}'