/[gentoo-x86]/eclass/alternatives.eclass
Gentoo

Diff of /eclass/alternatives.eclass

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.12 Revision 1.13
1# Copyright 1999-2004 Gentoo Foundation 1# Copyright 1999-2004 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.12 2005/07/11 15:08:06 swegener Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/alternatives.eclass,v 1.13 2006/03/25 02:37:04 agriffis Exp $
4 4
5# Author : Alastair Tse <liquidx@gentoo.org> (03 Oct 2003) 5# Author : Alastair Tse <liquidx@gentoo.org> (03 Oct 2003)
6# Short Desc: Creates symlink to the latest version of multiple slotted 6# Short Desc: Creates symlink to the latest version of multiple slotted
7# packages. 7# packages.
8# 8#
12# latest version. However, depending on the order the user has merged them, 12# latest version. However, depending on the order the user has merged them,
13# more often than not, the symlink maybe clobbered by the older versions. 13# more often than not, the symlink maybe clobbered by the older versions.
14# 14#
15# This eclass provides a convenience function that needs to be given a 15# This eclass provides a convenience function that needs to be given a
16# list of alternatives (descending order of recent-ness) and the symlink. 16# list of alternatives (descending order of recent-ness) and the symlink.
17# It will choose the latest version if can find installed and create 17# It will choose the latest version it can find installed and create
18# the desired symlink. 18# the desired symlink.
19# 19#
20# There are two ways to use this eclass. First is by declaring two variables 20# There are two ways to use this eclass. First is by declaring two variables
21# $SOURCE and $ALTERNATIVES where $SOURCE is the symlink to be created and 21# $SOURCE and $ALTERNATIVES where $SOURCE is the symlink to be created and
22# $ALTERNATIVES is a list of alternatives. Second way is the use the function 22# $ALTERNATIVES is a list of alternatives. Second way is the use the function

Legend:
Removed from v.1.12  
changed lines
  Added in v.1.13

  ViewVC Help
Powered by ViewVC 1.1.20