Code: Select all
$ wc -l /var/db/pkg/app-shells/bash-2.05b-r7/CONTENTS
28 /var/db/pkg/app-shells/bash-2.05b-r7/CONTENTSCode: Select all
$ egrep 'man|info|doc' /var/db/pkg/app-shells/bash-2.05b-r7/CONTENTS | wc -l
20I've made a working replacement for the portage `doman` and a utility to read embedded manpages that prototypes this idea, you can download them here:
http://dev.gentoo.org/~taviso/files/doman
http://dev.gentoo.org/~taviso/files/printman
Code: Select all
$ doman
* error: usage: doman <executable> <manpage> [<manpage> ...]
* error: not enough arguments
$ doman bash bash.1.gz bashbug.1.gz builtins.1.gz rbash.1.gz
$ printman
* error: usage: ./printman <executable> [<index>]
* error: not enough arguments
$ printman bash
# manual offset size
-----------------------------------------------------
1 bash.1 0x97904 64807
2 bashbug.1 0xa762b 713
3 builtins.1 0xa78f4 442
4 rbash.1 0xa7aae 151
$ printman bash 1
BASH(1) BASH(1)
NAME
bash - GNU Bourne-Again SHell
(...)metadata, maintainer information, etc could also be embedded in it, and with some friendly ncurses/X frontend to explore the embedded data I think users would be impressed.
Opinions?






