Add patch by Stephan Beyer to improve process_keys' input parsing,
[pgp-tools.git] / keyanalyze / analyze.sh
1 #!/bin/bash --
2 # usage ./analyze.sh path/to/pubring.pgp
3 set -e
4 make
5
6 # comment these next lines out if you are working with an existing
7 # preprocess.keys file
8 pgpring -S -k "$1" | process_keys $2 > preprocess.keys
9
10 # the actual processing of the main report
11 keyanalyze
12
13 # html beautification and reports and such
14 # comment this out if you don't want all the stuff in the report
15 # at http://dtype.org/keyanalyze/
16 cat output/msd.txt | sort -n -k 3 | nl -s ' ' > output/msd-sorted.txt
17 head -n 50 output/msd-sorted.txt | scripts/top50.pl > output/top50table.html
18 cat scripts/report_top.php output/top50table.html \
19 scripts/report_bottom.php > output/report.php
20 head -n 1000 output/msd-sorted.txt | scripts/top50.pl > output/top1000table.html
21 cat scripts/1000_top.php output/top1000table.html \
22 scripts/1000_bottom.php > output/report_1000.php