mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
eclass/eapi7-ver: Sync with gentoo
It's from gentoo commit 18a01a9ed1bf8132464a0104344b976804912e4d.
This commit is contained in:
parent
122700c07a
commit
734cccb114
@ -1,4 +1,4 @@
|
|||||||
# Copyright 1999-2018 Gentoo Foundation
|
# Copyright 1999-2021 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# @ECLASS: eapi7-ver.eclass
|
# @ECLASS: eapi7-ver.eclass
|
||||||
@ -17,8 +17,7 @@
|
|||||||
#
|
#
|
||||||
# https://bugs.gentoo.org/482170
|
# https://bugs.gentoo.org/482170
|
||||||
#
|
#
|
||||||
# @ROFF .SS
|
# @SUBSECTION Version strings
|
||||||
# Version strings
|
|
||||||
#
|
#
|
||||||
# The functions support arbitrary version strings consisting of version
|
# The functions support arbitrary version strings consisting of version
|
||||||
# components interspersed with (possibly empty) version separators.
|
# components interspersed with (possibly empty) version separators.
|
||||||
@ -50,8 +49,7 @@
|
|||||||
# 0 1 1
|
# 0 1 1
|
||||||
# @CODE
|
# @CODE
|
||||||
#
|
#
|
||||||
# @ROFF .SS
|
# @SUBSECTION Ranges
|
||||||
# Ranges
|
|
||||||
#
|
#
|
||||||
# A range can be specified as 'm' for m-th version component, 'm-'
|
# A range can be specified as 'm' for m-th version component, 'm-'
|
||||||
# for all components starting with m-th or 'm-n' for components starting
|
# for all components starting with m-th or 'm-n' for components starting
|
||||||
@ -60,7 +58,7 @@
|
|||||||
|
|
||||||
case ${EAPI:-0} in
|
case ${EAPI:-0} in
|
||||||
0|1|2|3|4|5|6) ;;
|
0|1|2|3|4|5|6) ;;
|
||||||
7) die "${ECLASS}: EAPI=${EAPI} includes all functions from this eclass" ;;
|
7|8) die "${ECLASS}: EAPI=${EAPI} includes all functions from this eclass" ;;
|
||||||
*) die "${ECLASS}: EAPI=${EAPI} unknown" ;;
|
*) die "${ECLASS}: EAPI=${EAPI} unknown" ;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user