3 # pgpgroup-to-gpggroup - convert PGP groups to GnuPG groups
4 # Copyright (C) 2004 Free Software Foundation, Inc.
6 # This program is free software; you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation; either version 2 of the License, or
9 # (at your option) any later version.
11 # This program is distributed in the hope that it will be useful, but
12 # WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 # General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with this program; if not, write to the Free Software
18 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
20 # This program requires a PGP command line program that supports
21 # groups (note that the PGP 8 command line doesn't).
23 $pgp="pgp -gvv 2>/dev/null";
25 open(PGP
,"$pgp|") || die "Unable to call PGP: $!";
29 # If the line begins with a ">", then it is a new group.
33 print "\ngroup $1 = ";