#!/bin/csh -f
set INITDIR = /usr/athena/lib/init
if (-r ${INITDIR}/set_path) source ${INITDIR}/set_path
if (! -d ${INITDIR} ) then
	set path = (/usr/local /usr/athena /bin/athena /usr/bin/X /usr/new \
			 /usr/new/mh/bin /usr/ucb /bin /usr/bin)
endif
if ( $?term ) then
	if ( ${term}x == xtermx ) unsetenv TERMCAP
endif
if ( ! $?hosttype ) then
	if ( -e /bin/athena/machtype ) then
		set hosttype=`/bin/athena/machtype`
	else
		set hosttype=vax
	endif
endif
set watchbin=/mit/watchmaker/${hosttype}bin
set homebin=${HOME}/${hosttype}bin
set sipbbin=/mit/sipb/${hosttype}bin
set staffbin=/mit/StaffTools/${hosttype}bin

if (! $?athena_path) set athena_path=($path)
set path=($HOME $homebin $watchbin $sipbbin /site/sipb/bin $athena_path $staffbin /usr/local /etc /usr/etc /etc/athena)

if (-r ${INITDIR}/env_variables) source ${INITDIR}/env_variables
# fix the Athena stuff
if (-r ${HOME}/.env_init) source ${HOME}/.env_init

exec /usr/bin/uwm
