]>
diplodocus.org Git - nmh/blob - docs/historical/mh-6.8.5/support/general/pgped.sh
1 : run this
script through
/bin
/sh
3 if [ "$1" = -sign ]; then
12 if [ "$#" != 1 ]; then
13 echo "usage: What now? ed pgped" 1>&2
18 trap "rm -f $DRAFT.1 $DRAFT.2 $DRAFT.2.asc" 0 1 2 3 13 15
20 USERS
="`stclsh -nointerface -messaging -messagebody $DRAFT -file @LIB/pgped.tcl $DRAFT.1 $DRAFT.2 $TEXT`"
22 if [ ! -s $DRAFT.1 -o ! -s $DRAFT.2 ]; then
26 if pgp
-$FLAGS $DRAFT.2 $USERS; then
27 mv $DRAFT `dirname $DRAFT`/,`basename $DRAFT`
29 cat $DRAFT.1 $DRAFT.2.asc
> $DRAFT