From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Sb6pY-0001RW-Sc for garchives@archives.gentoo.org; Sun, 03 Jun 2012 09:10:37 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 36A61E0824; Sun, 3 Jun 2012 09:08:48 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id 09A6BE0814 for ; Sun, 3 Jun 2012 09:08:47 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 529621B4014 for ; Sun, 3 Jun 2012 09:08:42 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id 69AE6E5430 for ; Sun, 3 Jun 2012 09:08:40 +0000 (UTC) From: "Petteri Räty" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Petteri Räty" Message-ID: <1330676749.6b1bcb401a25727bea39066cfe7d16fe3536e981.betelgeuse@gentoo> Subject: [gentoo-commits] proj/libbash:master commit in: scripts/, bashast/ X-VCS-Repository: proj/libbash X-VCS-Files: bashast/libbashWalker.g scripts/compound_command.bash X-VCS-Directories: scripts/ bashast/ X-VCS-Committer: betelgeuse X-VCS-Committer-Name: Petteri Räty X-VCS-Revision: 6b1bcb401a25727bea39066cfe7d16fe3536e981 X-VCS-Branch: master Date: Sun, 3 Jun 2012 09:08:40 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: c580fcda-a61f-49f7-a409-44886c264278 X-Archives-Hash: b26a1cf091a9e74d9e5899569fb7319f commit: 6b1bcb401a25727bea39066cfe7d16fe3536e981 Author: Mu Qiao gentoo org> AuthorDate: Fri Mar 2 08:25:49 2012 +0000 Commit: Petteri R=C3=A4ty gentoo org> CommitDate: Fri Mar 2 08:25:49 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/libbash.git;a= =3Dcommit;h=3D6b1bcb40 Walker: allow empty case command --- bashast/libbashWalker.g | 3 ++- scripts/compound_command.bash | 12 ++++++++++++ 2 files changed, 14 insertions(+), 1 deletions(-) diff --git a/bashast/libbashWalker.g b/bashast/libbashWalker.g index f57f403..95f8a90 100644 --- a/bashast/libbashWalker.g +++ b/bashast/libbashWalker.g @@ -1068,7 +1068,8 @@ case_clause[const std::string& target] returns[bool= matched] else { $matched =3D false; - seek_to_next_tree(ctx); + if(LA(1) =3D=3D CASE_COMMAND) + seek_to_next_tree(ctx); } }) |CASE_PATTERN; diff --git a/scripts/compound_command.bash b/scripts/compound_command.bas= h index 0d3321e..36161fe 100644 --- a/scripts/compound_command.bash +++ b/scripts/compound_command.bash @@ -361,3 +361,15 @@ for ((i =3D "${#python_versions[@]}"; i >=3D 0; i--)= ) do echo $i done +EAPI=3D"4" +case ${EAPI} in + 0|1) + echo "Unsupported EAPI=3D${EAPI} (too old) for ruby-ng.eclass" ;= ; + 2|3);; + 4) + # S is no longer automatically assigned when it doesn't exist. + S=3D"${WORKDIR}" + ;; =20 + *) =20 + echo "Unknown EAPI=3D${EAPI} for ruby-ng.eclass" +esac