blob: 8f019957147ae15138c6bb6c07a41d29d5b53442 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
#!/bin/bash
# silence the script by '&> /dev/null'
if [[ -z "$1" ]]; then
echo "Usage: $0 </path/to/output/>"
exit 1
fi
if ! type -P sig2dot &>/dev/null; then
echo "install signing-party"; exit 1
fi
if ! type -P dot &>/dev/null; then
echo "install graphviz"; exit 1
fi
gpg -q --keyid-format=long --keyring "${1}/active-devs.gpg" --list-sigs | \
/usr/bin/sig2dot -q -t "Gentoo Dev WoT" -s wot-stats.html \
> keys.dot
dot -Gcharset=UTF-8 -Tsvg keys.dot > "${1}/wot-graph.svg"
mv wot-stats.html "${1}"
|