After I my recent putback of some enhancements to man (PSARC/2007/688)
one of the comments I received was that now it would be nice if man
pages were automatically indexed.  The best solution I have to this
today is to run find to look for directories that look like they
contain man pages then run "catman -w" against them.  Surely there is
a better way.

I was thinking that the better way would be to have a service similar
to fc-cache that looked at the timestamps of man* and sman*
directories subdirectories and compared them to the timestamp of the
assocatiated windex files.  Sounds easy - except for the part of
figuring out where there are man directories.  In the world of IPS,
how would the windex service learn about new man directories?  It
brings to mind the following questions:

- Is it the duty of every package that delivers a man page?
- Does a man page become an object other than a file?
- Does each package that delivers a man page depend on a package that
delivered the $prefix/man directory and a per-prefix
svc:/system/windex:$mangled_prefix?
- When man pages are added or removed, how is the appropriate windex
service notified to rescan?

This question is not intended to imply that I plan (or do not plan) to
implement such a service in the near term - it is just something I am
kicking around in my mind right now and not sure how it fits with IPS.

-- 
Mike Gerdts
http://mgerdts.blogspot.com/
_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to