diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-08-21 23:14:26 +0100 |
commit | 7c59acba5699c9c58090a7a738669669a7307023 (patch) | |
tree | d51d27d020895a6b7a3298d9d1b9846c1fcb59a0 /eclass/readme.gentoo-r1.eclass | |
parent | e2db47eaae00ec33f8971db44b68645c5d3b9590 (diff) |
gentoo resync : 21.08.2021
Diffstat (limited to 'eclass/readme.gentoo-r1.eclass')
-rw-r--r-- | eclass/readme.gentoo-r1.eclass | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/eclass/readme.gentoo-r1.eclass b/eclass/readme.gentoo-r1.eclass index 69d0e1c5c6b4..3ad36fac2588 100644 --- a/eclass/readme.gentoo-r1.eclass +++ b/eclass/readme.gentoo-r1.eclass @@ -20,15 +20,9 @@ if [[ -z ${_README_GENTOO_ECLASS} ]]; then _README_GENTOO_ECLASS=1 -case "${EAPI:-0}" in - 0|1|2|3|4|5) - die "Unsupported EAPI=${EAPI:-0} (too old) for ${ECLASS}" - ;; - 6|7|8) - ;; - *) - die "Unsupported EAPI=${EAPI} (unknown) for ${ECLASS}" - ;; +case ${EAPI} in + 6|7|8) ;; + *) die "${ECLASS}: EAPI ${EAPI:-0} not supported" ;; esac # @ECLASS-VARIABLE: DISABLE_AUTOFORMATTING @@ -76,7 +70,10 @@ readme.gentoo_create_doc() { die "You are not specifying README.gentoo contents!" fi - dodoc "${T}"/README.gentoo + ( # subshell to avoid pollution of calling environment + docinto . + dodoc "${T}"/README.gentoo + ) || die README_GENTOO_DOC_VALUE=$(< "${T}/README.gentoo") } |