aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Bracht Laumann Jespersen <t@laumann.xyz>2022-04-30 21:37:24 +0200
committerMichał Górny <mgorny@gentoo.org>2022-05-02 21:05:00 +0200
commit1e715eb7fc040d5aa0495c901df699db188fef0a (patch)
tree7aed15282ac33cd1438b4bc543374d374b50baaf
parentMakefile: add a new "tag" target (diff)
downloadgentoo-syntax-1e715eb7fc040d5aa0495c901df699db188fef0a.tar.gz
gentoo-syntax-1e715eb7fc040d5aa0495c901df699db188fef0a.tar.bz2
gentoo-syntax-1e715eb7fc040d5aa0495c901df699db188fef0a.zip
newebuild: put inherit guard variable immediately after check
For new eclasses, the provided template puts the variable at the end of the body, but the current preference is to assign the variable immediately after the check. Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Michał Górny <mgorny@gentoo.org>
-rw-r--r--plugin/newebuild.vim2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index e704898..166713d 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -49,13 +49,13 @@ fun! <SID>MakeNewEbuild()
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 =''
- put ='_' . l:eclass_ident . '=1'
put ='fi'
" }}}