summaryrefslogtreecommitdiffstats
path: root/support/scripts/pkg-stats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-08 21:35:33 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-04-08 21:35:33 +0200
commitb1e102d1ab0b9179e882c8517a6d1843dd3b954f (patch)
tree42a71ea8917ba5f090e52d7b5dbdd71bf9beb78d /support/scripts/pkg-stats
parentbe458128dff83ce0930ed10fe40334cb5fe14690 (diff)
downloadbuildroot-b1e102d1ab0b9179e882c8517a6d1843dd3b954f.tar.gz
buildroot-b1e102d1ab0b9179e882c8517a6d1843dd3b954f.zip
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 <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/pkg-stats')
-rwxr-xr-xsupport/scripts/pkg-stats9
1 files changed, 9 insertions, 0 deletions
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 {
<td class=\"centered\">License</td>
<td class=\"centered\">License files</td>
<td class=\"centered\">Hash file</td>
+<td class=\"centered\">Warnings</td>
</tr>
"
@@ -323,6 +324,14 @@ for i in $(find boot/ linux/ package/ -name '*.mk' | sort) ; do
echo "<td class=\"centered correct\">Yes</td>"
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 "<td class=\"centered correct\">${nwarnings}</td>"
+ else
+ echo "<td class=\"centered wrong\">${nwarnings}</td>"
+ fi
+
echo "</tr>"
done
OpenPOWER on IntegriCloud