/[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.19
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.19 2011/11/22 18:40:14 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>, base-system@gentoo.org
8# @BLURB: functions which simplify manipulation of ${PV} and similar version strings 8# @BLURB: functions which simplify manipulation of ${PV} and similar version strings
114 local c=($(get_all_version_components "${1:-${PV}}")) 114 local c=($(get_all_version_components "${1:-${PV}}"))
115 echo ${c[0]} 115 echo ${c[0]}
116} 116}
117 117
118# @FUNCTION: get_version_component_range 118# @FUNCTION: get_version_component_range
119# @USAGE: [version] 119# @USAGE: <range> [version]
120# @DESCRIPTION: 120# @DESCRIPTION:
121# Get a particular component or range of components from the version. If no 121# Get a particular component or range of components from the version. If no
122# version parameter is supplied, defaults to $PV. 122# version parameter is supplied, defaults to $PV.
123# 1 1.2.3 -> 1 123# 1 1.2.3 -> 1
124# 1-2 1.2.3 -> 1.2 124# 1-2 1.2.3 -> 1.2

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

  ViewVC Help
Powered by ViewVC 1.1.20