From: Thomas Petazzoni Date: Sat, 8 Apr 2017 19:35:33 +0000 (+0200) Subject: pkg-stats: add new column with check-package warnings X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b1e102d1ab0b9179e882c8517a6d1843dd3b954f;p=buildroot.git pkg-stats: add new column with check-package warnings This allows the page at http://autobuild.buildroot.net/stats/ to show how many warnings returned by check-package affect each package. Signed-off-by: Thomas Petazzoni --- diff --git a/support/scripts/pkg-stats b/support/scripts/pkg-stats index 421fa5cf5d..28706628e9 100755 --- a/support/scripts/pkg-stats +++ b/support/scripts/pkg-stats @@ -68,6 +68,7 @@ td.lotsofpatches { License License files Hash file +Warnings " @@ -323,6 +324,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do echo "Yes" fi + file_list=$(find ${package_dir} -name '*.mk' -o -name '*.in*' -o -name '*.hash') + nwarnings=$(./support/scripts/check-package ${file_list} 2>&1 | sed '/\([0-9]*\) warnings generated/!d; s//\1/') + if [ ${nwarnings} -eq 0 ] ; then + echo "${nwarnings}" + else + echo "${nwarnings}" + fi + echo "" done