head	1.2;
access;
symbols;
locks; strict;
comment	@# @;


1.2
date	96.01.06.17.50.10;	author yoav;	state Exp;
branches;
next	1.1;

1.1
date	96.01.06.17.49.15;	author yoav;	state Exp;
branches;
next	;


desc
@originald
@


1.2
log
@modified to look like the rest of athena's scripts
@
text
@#!/bin/csh -f

#
#	This script attaches the filesystem containing the SIS
#	program, then executes it.  If the program cannot be found, or
#	if it exits with status -1, an appropriate message is displayed.
#


set sis_script=/afs/athena.mit.edu/astaff/project/sis_dev/sis/sis
set sis_locker=sis
set sis_appdefs=/mit/sis/Olsi
onintr cleanup				#  Handle interrupts sensibly


if (! -e $sis_appdefs) /bin/athena/attach -n $sis_locker > /dev/null

if (-e $sis_script && -e $sis_appdefs) then
	$sis_script $*
	if ($status == -1) set unavailable
else
	set unavailable
endif

if ($?unavailable) then
	/usr/ucb/more -d << EOF
Sorry, SIS is currently unavailable.

Call 3-4101 for help.

EOF
endif

cleanup:
onintr					#  Now, ignore interrupts
echo ""
exit 0
@


1.1
log
@Initial revision
@
text
@d1 1
a1 1
#!/bin/sh
d3 18
a20 33
MACH=`machtype`
case "$MACH" in
inbsd|linux)
	sis_prog=/mit/sis/${MACH}bin/olsi_${MACH}
	XENVIRONMENT=/mit/sis/Olsi
	export XENVIRONMENT
	;;
*)
	echo 'SIS is not yet supported for this platform'
	exit
	;;
esac

if [ ! "$DISPLAY" ] 
then
	echo ' '
	echo 'Sorry there is no SIS tty client. You must run SIS'
	echo 'from an Athena workstation. This is due to development'
        echo 'resource limits and security considerations.'
	echo 'If you have questions, etc. send mail to sis@@mit.edu'
	echo ' '
	exit
fi

if [ ! -x /mit/sis/ ]; then
	/bin/athena/attach -h -n -q -d -a -r sis
fi

if [ -f /mit/sis/DOWN ]
    then
	echo 'SIS is currently unavailable.  We are sorry for any'
	echo 'inconvenience.'
	exit
d22 11
a32 20
    echo 'Welcome to SIS!'
    echo ' '
    echo 'If you have not registered for your extra password, or registered'
    echo 'less than 2 weeks ago, you will only be able to access public'
    echo 'information.  If 2 weeks have passed, you can supply your MIT ID'
    echo 'and extra password in order to access your personal information.'
    echo ' '
    echo 'To register for an extra password type: add register; reg_extra.'
    echo ' '
    echo 'If you have forgotten your password, go to the Athena Accounts'
    echo 'Office  - Room 11-124H.  The office is open Monday through Friday'
    echo '2 - 5 pm.  Bring a picture ID with you, and they will reset your'
    echo 'password for you.'
    echo ' '
    echo ' '
    echo '==================================================================='
    echo ' If you have bugs to report, please send them to sipb-sis, and not'
    echo ' to the SIS developers. If it is necessary, it will be forwarded.'
    echo '==================================================================='
fi
d34 4
a37 1
exec ${sis_prog} "$@@"
@
