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 |