]>
git.sthu.org Git - pgp-tools.git/blob - keyanalyze/willy/report
6 if [ ! -e $input ]; then
7 echo Directory
$input not found
14 if [ -e $input/pubring.ids
]; then
15 grep -v '^#' $input/pubring.ids |
xargs \
16 gpg
--options $input/options
--recv-keys
18 test -e $input/pubring.gpg
&& chmod 644 $input/pubring.gpg
19 rm -f $input/pubring.gpg~
24 pgpring
-S -k $input/pubring.gpg \
25 |
grep "\(pub\|sig\|rev\|uid\)" \
26 |
sed -e "s/^\([a-z]*\).*:\([0-9A-F]\{16\}\):.*/\1 \2/g" \
28 | process_keys
> $input/preprocess.keys
29 keyanalyze
-i $input/preprocess.keys
-o $output/
30 rm $input/preprocess.keys
32 sort -n -k 3 < $output/msd.txt |
nl -s ' ' > $output/msd-sorted.txt
35 cat $output/msd-sorted.txt | .
/msd2html
$input/options \
36 > $output/top50table.html
37 cp $input/pubring.ids
$input/pubring.gpg
$output/
38 gpg
--options $input/options
--export -a >$output/pubring.asc
42 if [ -e $input/showall
]; then
46 if [ -e $input/nograph
]; then
49 echo -n "Graph generation started at "
51 gpg
--options $input/options
--list-sigs | \
52 sig2dot
$ALL 2>/dev
/null | \
53 neato
-Tps > $output/graph.ps
54 echo -n "Finished at "
56 convert
$output/graph.ps
$output/graph.jpg
57 convert
-geometry 320x240
$output/graph.ps \
58 $output/graph-small.jpg
63 if [ -e $input/party.ids
]; then
64 gpg
--options $input/options
--export \
65 `grep -v '^#' $input/party.ids` >$output/party.gpg
66 .
/party-table.pl
$output/party.gpg
>$output/party.html
67 gpg
--options $input/options
--fingerprint \
68 `grep -v '^#' $input/party.ids` >$output/sassaman.txt
69 md5sum $output/sassaman.txt
>$output/sassaman.md5
70 sha1sum $output/sassaman.txt
>$output/sassaman.sha1
75 if [ -e $input/report_top.
$1.
in ]; then
76 date=$
(date '+%d %B %Y')
77 sed "s/&date;/$date/" <$input/report_top.
$1.
in \
79 cat $output/top50table.html
$input/report_bottom.
$1.
in \
81 rm $output/top50table.html
83 if [ -e $input/index.
$1 ]; then
84 cp -a $input/index.
$1 $output/
89 if [ -e $input/non-recip.
in ]; then
90 .
/cosign
$output/*/* | \
91 grep -E 'has not signed ([1-9][0-9]|[5-9])' | \
92 sort -g -k 1.28 |
tac | \
93 .
/non-recip
$input >$output/non-recip.html
98 if [ -e $input/destination
]; then
99 dest
=$
(sed -e "s/\$input/$input/" < $input/destination
)
100 if [ "$RSYNC_DELETE" = "no" ]; then
101 rsync
-az $output/ $dest
103 rsync
-az --delete $output/ $dest
118 if [ -x $input/update.sh
]; then
119 $input/update.sh
$input $output