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

Diff of /eclass/versionator.eclass

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

Revision 1.4 Revision 1.5
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.4 2005/01/02 17:08:19 ciaranm Exp $ 3# $Header: /var/cvsroot/gentoo-x86/eclass/versionator.eclass,v 1.5 2005/01/04 13:03:54 ciaranm 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
210delete_version_separator() { 210delete_version_separator() {
211 replace_version_separator "${1}" "" "${2}" 211 replace_version_separator "${1}" "" "${2}"
212} 212}
213 213
214# Delete all version separators in $1 (defaults to $PV). 214# Delete all version separators in $1 (defaults to $PV).
215# '_' 1b.2.3 -> 1b_2_3 215# 1b.2.3 -> 1b23
216delete_all_version_separators() { 216delete_all_version_separators() {
217 replace_all_version_separators "${1}" 217 replace_all_version_separators "" "${1}"
218} 218}
219 219
220# Is $2 (defaults to $PVR) at least version $1? Intended for use in eclasses 220# Is $2 (defaults to $PVR) at least version $1? Intended for use in eclasses
221# only. Not very reliable, doesn't understand most things, make sure you test 221# only. Not very reliable, doesn't understand most things, make sure you test
222# reaaaallly well before using this. Prod ciaranm if you need it to support more 222# reaaaallly well before using this. Prod ciaranm if you need it to support more

Legend:
Removed from v.1.4  
changed lines
  Added in v.1.5

  ViewVC Help
Powered by ViewVC 1.1.20