commit: 9e4f5360b69558799c6974ed72248b86d09c6549
Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Mon Jan 2 12:25:25 2023 +0000
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Mon Jan 2 13:30:14 2023 +0000
URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=9e4f5360
newebuild: Use standard clause for unsupported EAPI in new eclasses
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
plugin/newebuild.vim | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/plugin/newebuild.vim b/plugin/newebuild.vim
index fddbc59..fd3eb4f 100644
--- a/plugin/newebuild.vim
+++ b/plugin/newebuild.vim
@@ -49,7 +49,7 @@ fun! <SID>MakeNewEbuild()
put =''
put ='case ${EAPI} in'
put =' 8) ;;'
- put =' *) die \"${ECLASS}: EAPI ${EAPI} unsupported.\"'
+ put =' *) die \"${ECLASS}: EAPI ${EAPI:-0} not supported\" ;;'
put ='esac'
put =''
let l:eclass_ident = substitute(toupper(l:eclass), "[^A-Z0-9]", "_",
"g")