#! /bin/sh
# if you can run this off locally, set SERVER to the empty string
# I had to go to another host; if you do too, set SERVER to the name
# to be used with rcp and rsh (or remsh)
SERVER=u2
TROFF=lwtroff
PIC=bin/pic
TBL=tbl
USENETMACS=tmac.usenix
PRINTER=-Pbradley_316
#
# copy the data to the host with troff
#
if test -n "$SERVER"
then
	rcp tmac.usenix authnews.ux Matt.Bishop pics.ms $SERVER:
fi
#
# run off the paper
#
if test -n "$SERVER"
then
	rsh $SERVER $TROFF $PRINTER $USENETMACS authnews.ux
else
	$TROFF $PRINTER $USENETMACS authnews.ux
fi
#
# run off the figures
#
if test -n "$SERVER"
then
	rsh $SERVER "$PIC pics.ms | $TBL | $TROFF $PRINTER -ms"
else
	$PIC pics.ms | $TBL | $TROFF $PRINTER -ms
fi
exit 0
