#!/bin/sh
# lucy browser

MEETINGS=/tmp/meetings$$
export MEETINGS
cp /afs/athena.mit.edu/astaff/project/lucydev/.meetings $MEETINGS
hosttype=`machtype`
if [ x$DISPLAY = x -o x$hosttype = xps2 -o x$hosttype = xrsaix ]; then
	discuss lucyb -request 'p current+1:last' -quit
else
	stdir=`/bin/athena/attach -n -p stafftools`
	delete -f /tmp/lucy
	ln -s $stdir/`/bin/athena/machtype`bin/xdsc /tmp/lucy
	exec /tmp/lucy
fi
