>>>>> On Sun, 04 Feb 2007, Mike Kelly wrote:

> You could look at eselect-vi[1] for how it handles this case,
> specifically the set_man_symlink() function.

> [1]
> http://sources.gentoo.org/viewcvs.py/eselect/trunk/modules/vi.eselect?view=markup

Hm, this looks like it will only handle gzip and bzip2 correctly:

        for x in ".1" ".1.bz2" ".1.gz" ; do
                if [[ -e /usr/share/man/man1/${target}${x} ]] ; then
                        extension="${x}"
                        break
                fi
        done

What if the user specifies some other compression program in
PORTAGE_COMPRESS?

Ulrich
-- 
gentoo-dev@gentoo.org mailing list

Reply via email to