From df3bf7bccd4b1caab137cec0f9ce17e7e2a39202 Mon Sep 17 00:00:00 2001 From: Thomas Petazzoni Date: Thu, 6 Jul 2017 21:45:41 +0200 Subject: [PATCH] pkg-stats: take into account waf packages The waf package infrastructure was not known by the pkg-stats script, so let's add it. Signed-off-by: Thomas Petazzoni --- support/scripts/pkg-stats | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 95a8afc45e..eb4871142f 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -84,6 +84,7 @@ python_packages=0 rebar_packages=0 virtual_packages=0 generic_packages=0 +waf_packages=0 manual_packages=0 packages_with_licence=0 packages_without_licence=0 @@ -231,6 +232,11 @@ for i in $(find boot/ linux/ package/ toolchain/ -name '*.mk' | sort) ; do hastarget=1 fi + if grep -E "\(waf-package\)" $i > /dev/null ; then + infratype="waf" + hastarget=1 + fi + pkg=$(basename $i) dir=$(dirname $i) pkg=${pkg%.mk} @@ -259,6 +265,8 @@ for i in $(find boot/ linux/ package/ toolchain/ -name '*.mk' | sort) ; do virtual_packages=$(($virtual_packages+1)) elif [ ${infratype} = "generic" ]; then generic_packages=$(($generic_packages+1)) + elif [ ${infratype} = "waf" ]; then + waf_packages=$(($waf_packages+1)) fi if grep -qE "^${pkgvariable}_LICENSE[ ]*=" $i ; then @@ -391,6 +399,10 @@ echo "Packages using the virtual infrastructure" echo "$virtual_packages" echo "" echo "" +echo "Packages using the waf infrastructure" +echo "$waf_packages" +echo "" +echo "" echo "Packages not using any infrastructure" echo "$manual_packages" echo "" -- 2.30.2