aboutsummaryrefslogtreecommitdiff
path: root/workman.sh
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2018-08-12 22:06:35 +0000
committerEitan Adler <eadler@FreeBSD.org>2018-08-12 22:06:35 +0000
commitdea597b2df99e5e6fb7b916b835bf2033e997924 (patch)
tree20898106941a60ca503628059c4cfc37f61c6956 /workman.sh
downloadsrc-58aee079397642b448c385e209ff070f1268e6c7.tar.gz
src-58aee079397642b448c385e209ff070f1268e6c7.zip
vendor/tzdb: reimport IANA database+code in a standard layoutvendor/tzdb/tzcode2018evendor/tzdb
I am using a new directory since the layout of both the vendor area and contrib/ need to be changed. This is a recommit of r337683 with only code.
Diffstat (limited to 'workman.sh')
-rwxr-xr-xworkman.sh32
1 files changed, 32 insertions, 0 deletions
diff --git a/workman.sh b/workman.sh
new file mode 100755
index 000000000000..4b3b64ae078e
--- /dev/null
+++ b/workman.sh
@@ -0,0 +1,32 @@
+#! /bin/sh
+
+# 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 '
+ binmode STDIN, '\'':encoding(utf8)'\'';
+ binmode STDOUT, '\'':encoding(utf8)'\'';
+ chomp;
+ s/.\010//g;
+ s/\s*$//;
+ if (/^$/) {
+ $sawblank = 1;
+ next;
+ } else {
+ if ($sawblank && $didprint) {
+ print "\n";
+ $sawblank = 0;
+ }
+ print "$_\n";
+ $didprint = 1;
+ }
+'