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

Diff of /eclass/versionator.eclass

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

Revision 1.14 Revision 1.15
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.14 2008/06/01 01:30:31 vapier Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/versionator.eclass,v 1.15 2008/06/12 12:48:34 opfer Exp $
4 4
5# @ECLASS: versionator.eclass 5# @ECLASS: versionator.eclass
6# @MAINTAINER: 6# @MAINTAINER:
7# base-system@gentoo.org 7# 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
188 __versionator_shopt_toggle on 188 __versionator_shopt_toggle on
189 echo $(get_version_component_range 2- "${1:-${PV}}" ) 189 echo $(get_version_component_range 2- "${1:-${PV}}" )
190 __versionator_shopt_toggle off 190 __versionator_shopt_toggle off
191} 191}
192 192
193# @FUNCTION: replace_version_sepaator 193# @FUNCTION: replace_version_separator
194# @USAGE: <search> <replacement> [subject] 194# @USAGE: <search> <replacement> [subject]
195# @DESCRIPTION: 195# @DESCRIPTION:
196# Replace the $1th separator with $2 in $3 (defaults to $PV if $3 is not 196# Replace the $1th separator with $2 in $3 (defaults to $PV if $3 is not
197# supplied). If there are fewer than $1 separators, don't change anything. 197# supplied). If there are fewer than $1 separators, don't change anything.
198# 1 '_' 1.2.3 -> 1_2.3 198# 1 '_' 1.2.3 -> 1_2.3

Legend:
Removed from v.1.14  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20