From 83c1f7ffe238de4533e809e110be2202a658be2b Mon Sep 17 00:00:00 2001 From: Joe Marcus Clarke Date: Mon, 19 Jan 2004 22:35:58 +0000 Subject: Add domakedescribe and doportlint, two scripts that iterate over the ports tree, and run "make describe" and portlint respectively. They can be useful as automated linting tools. PR: 59226 Submitted by: linimon --- Tools/scripts/doportlint | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 Tools/scripts/doportlint (limited to 'Tools/scripts/doportlint') diff --git a/Tools/scripts/doportlint b/Tools/scripts/doportlint new file mode 100755 index 000000000000..0de9bd4a7570 --- /dev/null +++ b/Tools/scripts/doportlint @@ -0,0 +1,20 @@ +#!/bin/sh +# +indexfile=/usr/ports/INDEX +tmpfile=/tmp/portlint.tmp +# +failures=0 +for i in `sed -e "s/ /_/g" ${indexfile}`; do + set $(echo $i | tr \| " ") + port=$2 + cd ${port} + portlint > ${tmpfile} 2> /dev/null || failures=$((${failures}+1)) + grep '^looks fine\.$' ${tmpfile} > /dev/null 2> /dev/null || \ + { echo '--------------- portlint results for '${port}; \ + grep -v '^OK:' ${tmpfile} |\ + sed -e 's/^0 fatal errors and //'; } + rm -f ${tmpfile} +done +echo '---------------' +echo 'number of ports with fatal errors in portlint: '${failures} +exit ${failures} -- cgit v1.2.3