| Create | nroff -man a.txt > a.1 |
| View local man file | man -l a.1 |
| gzip a.1 | |
| Copy to man directory | sudo cp a.1.gz /usr/share/man/man1 |
| Parse header information | lexgrog a.1.qz |
| Update the manual page index i.e. as used by apropos | sudo mandb |
It looks like we just compress the text file, there is no need to pass it through nroff/trroff.