1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-11-20 23:22:30 +00:00
Files
amiga-tz/workman.sh

32 lines
396 B
Bash
Raw Normal View History

2003-11-04 09:35:31 -05:00
#! /bin/sh
# %W%
2003-12-01 18:05:15 -05:00
# Tell groff not to emit SGR escape sequences (ANSI color escapes).
GROFF_NO_SGR=1
export GROFF_NO_SGR
echo ".am TH
.hy 0
2003-11-20 08:51:04 -05:00
.na
2003-12-01 18:05:15 -05:00
..
2003-11-20 08:51:04 -05:00
.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;
2003-11-04 09:35:31 -05:00
}
2003-11-20 08:51:04 -05:00
print "$_\n";
$didprint = 1;
}
'