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

Diff of /eclass/versionator.eclass

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

Revision 1.18 Revision 1.20
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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/versionator.eclass,v 1.18 2011/07/07 00:34:19 abcd Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/versionator.eclass,v 1.20 2011/11/22 18:42:10 vapier Exp $
4 4
5# @ECLASS: versionator.eclass 5# @ECLASS: versionator.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# Jonathan Callen <abcd@gentoo.org>, base-system@gentoo.org 7# Jonathan Callen <abcd@gentoo.org>
8# base-system@gentoo.org
8# @BLURB: functions which simplify manipulation of ${PV} and similar version strings 9# @BLURB: functions which simplify manipulation of ${PV} and similar version strings
9# @DESCRIPTION: 10# @DESCRIPTION:
10# This eclass provides functions which simplify manipulating $PV and similar 11# This eclass provides functions which simplify manipulating $PV and similar
11# variables. Most functions default to working with $PV, although other 12# variables. Most functions default to working with $PV, although other
12# values can be used. 13# values can be used.
114 local c=($(get_all_version_components "${1:-${PV}}")) 115 local c=($(get_all_version_components "${1:-${PV}}"))
115 echo ${c[0]} 116 echo ${c[0]}
116} 117}
117 118
118# @FUNCTION: get_version_component_range 119# @FUNCTION: get_version_component_range
119# @USAGE: [version] 120# @USAGE: <range> [version]
120# @DESCRIPTION: 121# @DESCRIPTION:
121# Get a particular component or range of components from the version. If no 122# Get a particular component or range of components from the version. If no
122# version parameter is supplied, defaults to $PV. 123# version parameter is supplied, defaults to $PV.
123# 1 1.2.3 -> 1 124# 1 1.2.3 -> 1
124# 1-2 1.2.3 -> 1.2 125# 1-2 1.2.3 -> 1.2

Legend:
Removed from v.1.18  
changed lines
  Added in v.1.20

  ViewVC Help
Powered by ViewVC 1.1.20