commit: 8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb Author: Thomas Bracht Laumann Jespersen <t <AT> laumann <DOT> xyz> AuthorDate: Mon May 2 19:02:05 2022 +0000 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> CommitDate: Mon May 2 19:05:01 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=8f87dfb9
newebuild: move EAPI guard outside inherit guard The convention is to put the EAPI guard before any inherit guards. Signed-off-by: Thomas Bracht Laumann Jespersen <t <AT> laumann.xyz> Closes: https://github.com/gentoo/gentoo-syntax/pull/46 Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> plugin/newebuild.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim index 166713d..fddbc59 100644 --- a/plugin/newebuild.vim +++ b/plugin/newebuild.vim @@ -47,15 +47,15 @@ fun! <SID>MakeNewEbuild() put ='# @BLURB: ' put ='# @DESCRIPTION:' put ='' - let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") - put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' - put ='_' . l:eclass_ident . '=1' - put ='' put ='case ${EAPI} in' put =' 8) ;;' put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"' put ='esac' put ='' + let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_", "g") + put ='if [[ ! ${_' . l:eclass_ident . '} ]]; then' + put ='_' . l:eclass_ident . '=1' + put ='' put ='fi' " }}}
