~theorytoe/mman

f3659f03e0dc2aa813f47b1086d28ad659c6c4de — theorytoe 6 months ago 962fe31
patches: add nroff-only patch
2 files changed, 17 insertions(+), 2 deletions(-)

M README.md
A nroff-fmt.patch
M README.md => README.md +3 -2
@@ 15,8 15,9 @@ sudo make install
```
There are also a couple of patches:

- `./no-scdoc.patch` -- remove scdoc support
- `./no-troff.patch` -- remove troff "support"
- `./no-scdoc.patch`  -- remove scdoc support
- `./no-troff.patch`  -- remove troff "support"
- `./nroff-fmt.patch` -- use nroff for manpages instead of man

patches can be applied/removed withe the following commands


A nroff-fmt.patch => nroff-fmt.patch +14 -0
@@ 0,0 1,14 @@
--- mman	2022-11-21 17:18:42.520223154 -0700
+++ mman.in	2022-11-21 17:19:39.896886314 -0700
@@ -91,9 +91,9 @@
 		file=${MMANDIR}/$1.$i.man
 		if [ -f "$file" ]; then
 			if istty; then
-				man -mandoc "$file"
+				nroff -Tascii -c mandoc < "$file" | $PAGER
 			else
-				man -mandoc "$file"
+				nroff -Tascii -c mandoc < "$file" 
 			fi
 		fi
 		file=${MMANDIR}/$1.$i.txt