
# Note that under normal circumstances you shouldn't do this.
# This is just provide several users with a proxy of their own.
#
setenv TUTORIAL_USER `pwd | sed -e 's|^.*globtut/||' -e 's|/.*$||'`
setenv X509_USER_PROXY /tmp/proxy-$TUTORIAL_USER

if ( "$1" == "1.0" ) then
    set tools=/soft/pub/packages/globus-1.0.2/tools/sparc-sun-solaris2.5.1/bin
else
    set tools=/bin
endif

# ...and a sanity check...
#
if ( ! $?GLOBUS_INSTALL_PATH ) then
    echo 'PANIC: GLOBUS_INSTALL_PATH not correctly defined in ~/.cshrc'
    exit 1
endif

setenv GLOBUS_ARCH `$GLOBUS_INSTALL_PATH/sbin/config.guess`

if ( ! $?SYS_PATH ) then
    setenv SYS_PATH $PATH
endif
setenv PATH ${tools}:${SYS_PATH}

alias go "source ~/$TUTORIAL_USER/setup-workspace \!*"

echo "setup done."

