aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-08-12 11:58:34 +0200
committerMichał Górny <mgorny@gentoo.org>2018-08-12 11:58:57 +0200
commit6efec1a122a2806b093df4ca99771c3a7a95b925 (patch)
tree99024d847dce5f46f8a0db76ded5cb3ace6ac52b
parentcreate-dev-keyrings: Increase gpg refresh timeout (diff)
downloadqa-scripts-6efec1a122a2806b093df4ca99771c3a7a95b925.tar.gz
qa-scripts-6efec1a122a2806b093df4ca99771c3a7a95b925.tar.bz2
qa-scripts-6efec1a122a2806b093df4ca99771c3a7a95b925.zip
check_eclasses_eapis: Include supported EAPIs in STATS.txt
-rwxr-xr-xcheck_eclasses_eapis.sh4
1 files changed, 4 insertions, 0 deletions
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