manr: fix
[copyleftie-scripts.git] / mans
blob39e8e1ee8d6b7defb775e920947ae3d7daaffed8
1 #!/bin/execlineb -WS1
3 backtick -i -n progname { basename ${0} }
4 importas -u progname progname
6 ifelse { test ${#} -eq 2 } {
7         mans ${2}
8 } ifelse -n { test ${#} -eq 1 } {
9         usgerr ${progname} [section] manpage
12 define cmd /usr/share/doc/execline/${1}.html
13 ifelse { test -e ${cmd} } {
14         pipeline { htmlfmt -l 65 ${cmd} }
15                 fmt -j -i 5
18 define s6cmd /usr/share/doc/s6-portable-utils/${1}.html
19 if { test -e ${s6cmd} }
20         pipeline { htmlfmt -l 65 ${s6cmd} }
21                 fmt -j -i 5