From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A40D6158090 for ; Mon, 2 May 2022 19:06:06 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6CF82E0B58; Mon, 2 May 2022 19:06:05 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4121BE0B54 for ; Mon, 2 May 2022 19:06:05 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 57CD334163A for ; Mon, 2 May 2022 19:06:04 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D055C105 for ; Mon, 2 May 2022 19:06:02 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1651518300.1e715eb7fc040d5aa0495c901df699db188fef0a.mgorny@gentoo> Subject: [gentoo-commits] proj/gentoo-syntax:master commit in: plugin/ X-VCS-Repository: proj/gentoo-syntax X-VCS-Files: plugin/newebuild.vim X-VCS-Directories: plugin/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 1e715eb7fc040d5aa0495c901df699db188fef0a X-VCS-Branch: master Date: Mon, 2 May 2022 19:06:02 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b931a629-4d6c-4ce2-8270-f45c5d37320c X-Archives-Hash: d0ae6946a9d8fabd951dbf36615b5573 commit: 1e715eb7fc040d5aa0495c901df699db188fef0a Author: Thomas Bracht Laumann Jespersen laumann xyz> AuthorDate: Sat Apr 30 19:37:24 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon May 2 19:05:00 2022 +0000 URL: https://gitweb.gentoo.org/proj/gentoo-syntax.git/commit/?id=1e715eb7 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 laumann.xyz> Signed-off-by: Michał Górny gentoo.org> plugin/newebuild.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! 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' " }}}