#!/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 ]; then
	discuss lucyb -request 'p current+1:last' -quit
else
	xdsc=/usr/athena/bin/xdsc
	if [ ! -f $xdsc ]; then
		xdsc=`attach -h -n -p stafftools`/`machtype`bin/xdsc
	fi
	delete -f /tmp/lucy
	ln -s $xdsc /tmp/lucy
	exec /tmp/lucy
fi
