1
0
mirror of https://frontier.innolan.net/rainlance/amiga-tz.git synced 2025-12-06 18:52:33 +00:00
Files
amiga-tz/workman.sh
Arthur David Olson 9a127d706c public domain
SCCS-file: workman.sh
SCCS-SID: 8.2
2012-07-18 03:03:07 -04:00

33 lines
489 B
Bash

#! /bin/sh
# <pre>
# %W%
# This file is in the public domain, so clarified as of
# 2009-05-17 by Arthur David Olson.
# 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
..
.rm }H
.rm }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;
}
'