blob: 5bf48e2264dd8a449f81d4a0920276d57d8f129a (
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/bash
# Created by Tomáš Chvátal <scarabeus@gentoo.org>
# License WTFPL-2.0
[[ -z $1 ]] && exit 1
if [[ $1 == help || $1 == --help ]]; then
echo "Usage: $0 herd-or-maintainer-to-checkup"
exit 0
fi
if [[ $1 = *@* ]]; then
target="--maintainer=$1"
else
target="--herd=$1"
fi
#-c pkgcore_checks.imlate \
pushd "$(portageq get_repo_path / gentoo)" > /dev/null
package=$(pquery ${target} --repo=portdir --no-version | tr '\n' ' ')
pcheck -c pkgcore_checks.deprecated \
-c pkgcore_checks.whitespace \
-c pkgcore_checks.pkgdir_checks \
-c pkgcore_checks.metadata_checks \
-c pkgcore_checks.codingstyle \
-c pkgcore_checks.visibility \
-c pkgcore_checks.cleanup \
${package} \
--repo=portdir \
--disable-arches=mips,x86-fbsd,m68k,ppc-macos
popd > /dev/null
|