cosmopolitan/tool/scripts/man2txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
200 B
Text
Raw Normal View History

2022-08-21 20:38:45 +00:00
#!/bin/sh
ASCII2UTF8=$(command -v ascii2utf8 2>/dev/null) || {
ASCII2UTF8=$(ls -1 o/*/tool/viz/ascii2utf8 | head -n1)
}
2022-08-21 20:38:45 +00:00
for x; do
nroff -mandoc -rLL=80n -rLT=80n -Tutf8 <"$x" | $ASCII2UTF8
2022-08-21 20:38:45 +00:00
done