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

Diff of /eclass/versionator.eclass

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

Revision 1.10 Revision 1.11
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/versionator.eclass,v 1.10 2006/03/21 00:49:54 kugelfang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/versionator.eclass,v 1.11 2006/08/30 16:14:13 spb Exp $
4# 4#
5# Original Author: Ciaran McCreesh <ciaranm@gentoo.org> 5# Original Author: Ciaran McCreesh <ciaranm@gentoo.org>
6# 6#
7# This eclass provides functions which simplify manipulating $PV and similar 7# This eclass provides functions which simplify manipulating $PV and similar
8# variables. Most functions default to working with $PV, although other 8# variables. Most functions default to working with $PV, although other
150# 7c -> c 150# 7c -> c
151# 3.0_p2 -> 0_p2 151# 3.0_p2 -> 0_p2
152# 20040905 -> (empty string) 152# 20040905 -> (empty string)
153# 3.0c-r1 -> 0c-r1 153# 3.0c-r1 -> 0c-r1
154get_after_major_version() { 154get_after_major_version() {
155 echo $(get_version_component_range 2- "${1:-PV}" ) 155 echo $(get_version_component_range 2- "${1:-${PV}}" )
156} 156}
157 157
158# Replace the $1th separator with $2 in $3 (defaults to $PV if $3 is not 158# Replace the $1th separator with $2 in $3 (defaults to $PV if $3 is not
159# supplied). If there are fewer than $1 separators, don't change anything. 159# supplied). If there are fewer than $1 separators, don't change anything.
160# 1 '_' 1.2.3 -> 1_2.3 160# 1 '_' 1.2.3 -> 1_2.3

Legend:
Removed from v.1.10  
changed lines
  Added in v.1.11

  ViewVC Help
Powered by ViewVC 1.1.20