X-Git-Url: https://git.sthu.org/?a=blobdiff_plain;f=gpglist%2Fgpglist;h=42b4dcea3d00abc04cb9d5cc6cd7dac80f461e6a;hb=39c75822b5df62816e46e5c3d7a2f1940d517963;hp=58d5c1e691e0565b2d31c7bd28a0b91cf1a6f638;hpb=b91e73280982b084eee83d1b7f559fc409417067;p=pgp-tools.git diff --git a/gpglist/gpglist b/gpglist/gpglist index 58d5c1e..42b4dce 100755 --- a/gpglist/gpglist +++ b/gpglist/gpglist @@ -1,5 +1,7 @@ #!/usr/bin/perl +# $Id$ + # small script to show in an intuitive way who signed which of your user ids # # Copyright (c) 2004 Uli Martens @@ -30,10 +32,11 @@ use strict; use warnings; +use English; my $key=shift @ARGV; -if ( $key eq "" ) { - die +unless (defined $key) { + die "Usage: $PROGRAM_NAME \n"; } open SIGS, "gpg --fixed-list-mode --with-colons --list-sigs $key 2>/dev/null |" @@ -78,6 +81,10 @@ while () { } close SIGS; +# XXX: Add an option for this +my $c = 0; +@uids = grep { ! defined $rev{$uids[$c++]} } @uids; + my $n = scalar @uids -1; for ( my $a=0; $a <= $n; $a++ ) { printf "| " x ($a)