head 1.4; access; symbols; locks; strict; comment @# @; 1.4 date 96.02.09.01.32.45; author jromine; state Exp; branches; next 1.3; 1.3 date 95.12.06.21.05.46; author jromine; state Exp; branches; next 1.2; 1.2 date 95.12.06.21.00.19; 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.4 log @fix usage of tr to be acceptable to SYS5 @ text @: run this script through /bin/sh : $Id:$ CMD=$1 SHOW=more REFILE=N X=$2.tmp Y=$2.out Z=$2 trap "rm -f $X $Y" 0 1 2 3 13 15 shift; shift for A in $*; do A="`echo $A | tr '[A-Z]' '[a-z]'`" case "$A" in format=*) if [ "$A" = "format=mime" ]; then SHOW="show -file" REFILE=T fi ;; x-*) ;; *) echo "usage: pgpshow -store/-show file" exit 1 ;; esac done case "$CMD" in -show) rm -f $X $Y if pgp $Z -o $X | tee $Y; then PGP_SIGNATURE=`grep "^Good signature from user " $Y | sed -e 's%^Good signature from user "\(.*\)".$%\1%'` export PGP_SIGNATURE $SHOW $X else exit 1 fi ;; -store) cat > $X pgp $X -o $Z if [ "$REFILE" = "T" ]; then refile -file $Z +inbox fi ;; *) echo "usage: pgpshow -store/-show file" exit 1 ;; esac exit 0 @ 1.3 log @pgp fixes from mtr @ text @d2 1 d11 1 a11 1 A="`echo $A | tr A-Z a-z`" @ 1.2 log @pgp fixes from mtr @ text @d19 3 @ 1.1 log @Initial revision @ text @d5 2 a6 2 X=$2.tmp Z=$2 trap "rm -f $X" 0 1 2 3 13 15 d10 1 d26 4 a29 2 -show) rm -f $X if pgp $Z -o $X; then @