Gentoo Archives: gentoo-dev

From: ulm@kph.uni-mainz.de (Ulrich Mueller)
To: gentoo-dev@l.g.o
Cc: Mike Kelly <pioto@g.o>
Subject: Re: [gentoo-dev] Re: alternatives.eclass and ecompress
Date: Mon, 05 Feb 2007 09:10:47
Message-Id: u8xfd2cr6@a1i15.kph.uni-mainz.de
In Reply to: Re: [gentoo-dev] Re: alternatives.eclass and ecompress by Mike Kelly
1 >>>>> On Sun, 04 Feb 2007, Mike Kelly wrote:
2
3 > You could look at eselect-vi[1] for how it handles this case,
4 > specifically the set_man_symlink() function.
5
6 > [1]
7 > http://sources.gentoo.org/viewcvs.py/eselect/trunk/modules/vi.eselect?view=markup
8
9 Hm, this looks like it will only handle gzip and bzip2 correctly:
10
11 for x in ".1" ".1.bz2" ".1.gz" ; do
12 if [[ -e /usr/share/man/man1/${target}${x} ]] ; then
13 extension="${x}"
14 break
15 fi
16 done
17
18 What if the user specifies some other compression program in
19 PORTAGE_COMPRESS?
20
21 Ulrich
22 --
23 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] Re: alternatives.eclass and ecompress Ciaran McCreesh <ciaranm@×××××××.org>