| 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.8 2005/07/06 20:20:04 agriffis Exp $ |
3 | # $Header: /var/cvsroot/gentoo-x86/eclass/versionator.eclass,v 1.9 2005/07/06 20:23:20 agriffis 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 |
| … | |
… | |
| 32 | # |
32 | # |
| 33 | # There's also: |
33 | # There's also: |
| 34 | # version_is_at_least want have |
34 | # version_is_at_least want have |
| 35 | # which may be buggy, so use with caution. |
35 | # which may be buggy, so use with caution. |
| 36 | |
36 | |
| 37 | INHERITED="$INHERITED $ECLASS" |
|
|
| 38 | |
37 | |
| 39 | shopt -s extglob |
38 | shopt -s extglob |
| 40 | |
39 | |
| 41 | # Split up a version string into its component parts. If no parameter is |
40 | # Split up a version string into its component parts. If no parameter is |
| 42 | # supplied, defaults to $PV. |
41 | # supplied, defaults to $PV. |