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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 481A2138239 for ; Sun, 12 Aug 2018 09:59:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 17E9AE0A92; Sun, 12 Aug 2018 09:59:14 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E33DDE0A92 for ; Sun, 12 Aug 2018 09:59:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2D28A335C95 for ; Sun, 12 Aug 2018 09:59:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0EA4D275 for ; Sun, 12 Aug 2018 09:59:09 +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: <1534067937.6efec1a122a2806b093df4ca99771c3a7a95b925.mgorny@gentoo> Subject: [gentoo-commits] proj/qa-scripts:master commit in: / X-VCS-Repository: proj/qa-scripts X-VCS-Files: check_eclasses_eapis.sh X-VCS-Directories: / X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 6efec1a122a2806b093df4ca99771c3a7a95b925 X-VCS-Branch: master Date: Sun, 12 Aug 2018 09:59:09 +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-Archives-Salt: a13de78a-0454-4129-8bdb-37927ef315be X-Archives-Hash: d406f570cc2f55878a616a806d9bf841 commit: 6efec1a122a2806b093df4ca99771c3a7a95b925 Author: Michał Górny gentoo org> AuthorDate: Sun Aug 12 09:58:34 2018 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Aug 12 09:58:57 2018 +0000 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=6efec1a1 check_eclasses_eapis: Include supported EAPIs in STATS.txt check_eclasses_eapis.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/check_eclasses_eapis.sh b/check_eclasses_eapis.sh index 218f01a..b78fb39 100755 --- a/check_eclasses_eapis.sh +++ b/check_eclasses_eapis.sh @@ -57,6 +57,10 @@ for x in ${ECLASSES}; do tmpval=$(wc -l "${y}.txt" |cut -d' ' -f1) echo "EAPI=${y} count: ${tmpval}" >> "STATS.txt" done + SUPP_EAPIS=$(sed -n -e 's/^# @SUPPORTED_EAPIS: //p' "${REPO_PATH}/eclass/${x}") + if [[ -n ${SUPP_EAPIS} ]]; then + echo "EAPIs declared supported by eclass: ${SUPP_EAPIS}" >> STATS.txt + fi sed -e 's/$/
/' STATS.txt > README.html popd > /dev/null done