usr/src/boot: add .PARALLEL to makefiles
[unleashed.git] / contrib / tzcode / workman.sh
blob4b3b64ae078e17f66add6c17c357be19ddde1469
1 #! /bin/sh
3 # This file is in the public domain, so clarified as of
4 # 2009-05-17 by Arthur David Olson.
6 # Tell groff not to emit SGR escape sequences (ANSI color escapes).
7 GROFF_NO_SGR=1
8 export GROFF_NO_SGR
10 echo ".am TH
11 .hy 0
12 .na
14 .rm }H
15 .rm }F" | nroff -man - ${1+"$@"} | perl -ne '
16 binmode STDIN, '\'':encoding(utf8)'\'';
17 binmode STDOUT, '\'':encoding(utf8)'\'';
18 chomp;
19 s/.\010//g;
20 s/\s*$//;
21 if (/^$/) {
22 $sawblank = 1;
23 next;
24 } else {
25 if ($sawblank && $didprint) {
26 print "\n";
27 $sawblank = 0;
29 print "$_\n";
30 $didprint = 1;