head	1.2;
access;
symbols
	DEVEL-BRANCH-1-1:1.2
	V1-0-0:1.2
	V0-9-11:1.2
	V0-9-10:1.2
	V0-9-9:1.2;
locks; strict;
comment	@# @;


1.2
date	99.07.14.17.47.21;	author wkoch;	state Exp;
branches;
next	1.1;

1.1
date	99.07.08.14.24.35;	author wkoch;	state Exp;
branches;
next	;


desc
@@


1.2
log
@See ChangeLog: Wed Jul 14 19:42:08 CEST 1999  Werner Koch
@
text
@#!/bin/sh
# lspgpot - script to extract the ownertrust values
# from PGP keyrings and list them in GnuPG ownertrust format.

../g10/gpg --dry-run --with-fingerprint --with-colons $* | awk '
BEGIN { FS=":"
	printf "# Ownertrust listing generated by lspgpot\n"
	printf "# This can be imported using the command:\n"
	printf "#    ggp --import-ownertrust\n\n"  }
$1 == "fpr" { fpr = $10 }
$1 == "rtv" && $2 == 1 && $3 == 2 { printf "%s:3:\n", fpr; next }
$1 == "rtv" && $2 == 1 && $3 == 5 { printf "%s:4:\n", fpr; next }
$1 == "rtv" && $2 == 1 && $3 == 6 { printf "%s:5:\n", fpr; next }
'

@


1.1
log
@See ChangeLog: Thu Jul  8 16:21:27 CEST 1999  Werner Koch
@
text
@d3 1
a3 1
# from a PGP keyrings and list them in GnuPG ownertrust format.
@
