blob: c2128c97a43f6048479dda01864cc0ddbdacda2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
#!/bin/sh
# $NetBSD: lintpkgsrc.sh,v 1.1 1998/08/07 22:13:43 tsarna Exp $
PORTLINT=@PREFIX@/bin/portlint
PORTLINTFLAGS="-a -b -c -v"
cd @PORTSDIR@
for i in *
do
if [ -d $i/. -a $i != distfiles -a $i != packages ]; then
cd $i
for j in *
do
if [ -d $j/. -a $j != "CVS" -a $j != "pkg" ]; then
${PORTLINT} ${PORTLINTFLAGS} $j \
| grep -v '^OK' \
| grep -v '^WARN: be sure to cleanup .*/work before committing the port' \
| grep -v '^WARN: is it a new port' \
>tmp$$
if [ `cat tmp$$ | wc -l` -gt 1 ]; then
echo ""
echo "===> $i/$j"
echo ${PORTLINT} ${PORTLINTFLAGS} $j
cat tmp$$
fi
rm -f tmp$$
fi
done
cd ..
fi
done
|