mirror of
https://frontier.innolan.net/rainlance/amiga-tz.git
synced 2025-11-21 21:12:29 +00:00
32 lines
396 B
Bash
32 lines
396 B
Bash
#! /bin/sh
|
|
|
|
# %W%
|
|
|
|
# Tell groff not to emit SGR escape sequences (ANSI color escapes).
|
|
GROFF_NO_SGR=1
|
|
export GROFF_NO_SGR
|
|
|
|
echo ".am TH
|
|
.hy 0
|
|
.na
|
|
..
|
|
.de }H
|
|
..
|
|
.de }F
|
|
.." | nroff -man - ${1+"$@"} | perl -ne '
|
|
chomp;
|
|
s/.\010//g;
|
|
s/\s*$//;
|
|
if (/^$/) {
|
|
$sawblank = 1;
|
|
next;
|
|
} else {
|
|
if ($sawblank && $didprint) {
|
|
print "\n";
|
|
$sawblank = 0;
|
|
}
|
|
print "$_\n";
|
|
$didprint = 1;
|
|
}
|
|
'
|