From 9e4f5360b69558799c6974ed72248b86d09c6549 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Mon, 2 Jan 2023 13:25:25 +0100 Subject: newebuild: Use standard clause for unsupported EAPI in new eclasses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Górny --- 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! 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") -- cgit v1.2.3-65-gdbad