head 1.2; access; symbols; locks; strict; comment @# @; 1.2 date 95.12.06.21.00.46; author jromine; state Exp; branches; next 1.1; 1.1 date 95.12.06.20.57.55; author jromine; state Exp; branches; next ; desc @@ 1.2 log @more pgp fixes from mtr @ text @: run this script through /bin/sh if [ "$1" = -sign ]; then FLAGS=sat TEXT=T shift else FLAGS=esat TEXT=F fi if [ "$#" != 1 ]; then echo "usage: What now? ed pgped" 1>&2 exit 1 fi DRAFT=$1 trap "rm -f $DRAFT.1 $DRAFT.2 $DRAFT.2.asc" 0 1 2 3 13 15 USERS="`stclsh -nointerface -messaging -messagebody $DRAFT -file @@LIB/pgped.tcl $DRAFT.1 $DRAFT.2 $TEXT`" if [ ! -s $DRAFT.1 -o ! -s $DRAFT.2 ]; then exit 1 fi if pgp -$FLAGS $DRAFT.2 $USERS; then mv $DRAFT `dirname $DRAFT`/,`basename $DRAFT` cat $DRAFT.1 $DRAFT.2.asc > $DRAFT exit 0 fi exit 1 @ 1.1 log @Initial revision @ text @d5 1 d9 1 d20 1 a20 1 USERS="`stclsh -nointerface -messaging -messagebody $DRAFT -file @@LIB/pgped.tcl $DRAFT.1 $DRAFT.2`" @