aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-05-02 21:02:05 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-02 21:05:01 +0200
commit8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb (patch)
treeb0c66e784b6a9e8d39c0cf3cb901fd419a6b402f
parentnewebuild: put inherit guard variable immediately after check (diff)
downloadgentoo-syntax-8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb.tar.gz
gentoo-syntax-8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb.tar.bz2
gentoo-syntax-8f87dfb9e5cb4023a69b1325f2b0235c58fe03cb.zip
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@laumann.xyz> Closes: https://github.com/gentoo/gentoo-syntax/pull/46 Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--plugin/newebuild.vim8
1 files 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'
" }}}