Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
Date: Wed, 18 Jul 2018 06:09:18
Message-Id: 1531893970.3673445cc95c535f0b6698c2354244ee8d489b0c.mgorny@gentoo
1 commit: 3673445cc95c535f0b6698c2354244ee8d489b0c
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jul 18 06:06:10 2018 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Wed Jul 18 06:06:10 2018 +0000
6 URL: https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=3673445c
7
8 gen-dev-wot: Stop using absolute paths
9
10 gen-dev-wot.sh | 10 +++++-----
11 1 file changed, 5 insertions(+), 5 deletions(-)
12
13 diff --git a/gen-dev-wot.sh b/gen-dev-wot.sh
14 index dd3d88a..c5de46d 100755
15 --- a/gen-dev-wot.sh
16 +++ b/gen-dev-wot.sh
17 @@ -6,10 +6,10 @@ if [[ -z "$1" ]]; then
18 echo "Usage: $0 </path/to/output/>"
19 exit 1
20 fi
21 -if [[ ! -e /usr/bin/sig2dot ]]; then
22 +if ! type -P sig2dot &>/dev/null; then
23 echo "install signing-party"; exit 1
24 fi
25 -if [[ ! -e /usr/bin/neato ]]; then
26 +if ! type -P dot &>/dev/null; then
27 echo "install graphviz"; exit 1
28 fi
29
30 @@ -20,14 +20,14 @@ wget -q -O - http://www.gentoo.org/proj/en/devrel/roll-call/userinfo.xml | \
31 egrep -o '0x([A-Z0-9]{8}){1,2}' > keys.txt
32
33 # Looks like all the outgoing connections to port 11371 are blocked from scrubfowl
34 -/usr/bin/gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
35 +gpg -q --keyserver hkp://p80.pool.sks-keyservers.net:80 --recv-keys \
36 `cat keys.txt`
37
38 -/usr/bin/gpg -q --no-default-keyring --list-sigs | \
39 +gpg -q --no-default-keyring --list-sigs | \
40 /usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
41 > keys.dot
42
43 -/usr/bin/dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
44 +dot -Gcharset=latin1 -Tpng keys.dot > "${1}/wot-graph.png"
45
46 mv wot-stats.html "${1}"
47 rm -rf $GNUPGHOME