mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-02 01:20:54 +00:00
83c1f7ffe2
tree, and run "make describe" and portlint respectively. They can be useful as automated linting tools. PR: 59226 Submitted by: linimon
20 lines
494 B
Bash
Executable File
20 lines
494 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
indexfile=/usr/ports/INDEX
|
|
tmpfile=/tmp/makedescribe.tmp
|
|
#
|
|
failures=0
|
|
for i in `sed -e "s/ /_/g" ${indexfile}`; do
|
|
set $(echo $i | tr \| " ")
|
|
port=$2
|
|
cd ${port}
|
|
make describe > /dev/null 2> ${tmpfile} || \
|
|
{ failures=$(($failures+1)); \
|
|
echo '--------------- make describe failed for '${port}':'; \
|
|
cat ${tmpfile}; }
|
|
rm -f ${tmpfile}
|
|
done
|
|
echo '---------------'
|
|
echo 'Total number of ports that failed trying to build /usr/ports/INDEX: '${failures}
|
|
exit ${failures}
|