commit:     6efec1a122a2806b093df4ca99771c3a7a95b925
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 12 09:58:34 2018 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> 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/$/<br>/' STATS.txt > README.html
        popd > /dev/null
 done

Reply via email to