# @(#)local.login 1.3     93/09/15 SMI

#
#	Since dtlogin includes a path with /usr/ucb and /usr/contrib/bin
#	and it is hardcoded in the load module we can't use the 
#	/etc/default/login for global PATH settings.  Also that file
#	does not set MANPATH or LD_LIBRARY_PATH.
#
#	In order to set system wide defaults for these, we source a
#	system wide login file.  

source /etc/default/userlogin

#	Any additional user specific PATH parameters may be added here
#	by appending to the current path:

#setenv PATH /opt/local/lzp/bin:/opt/SUNWspro/bin
#setenv PATH "$PATH":/usr/ccs/bin:/usr/bin:/usr/sbin:/opt/local/bin
#setenv PATH "$PATH":/usr/dt/bin:/usr/openwin/bin
#setenv PATH "$PATH":/opt/lv401:/opt/local/parasoft/bin.solaris
#setenv PATH "$PATH":/oracle/app/oracle/product/7.3.2/bin:.
#setenv PATH "$PATH":/usr/ucb:$HOME/bin
#setenv LD_LIBRARY_PATH /opt/SUNWspro/lib
#setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":/usr/dt/lib:/usr/openwin/lib
#setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":/opt/local/parasoft/lib.solaris
#setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH":/oracle/app/oracle/product/7.3.2/lib
#setenv MANPATH /opt/local/parasoft/man:/opt/SUNWspro/man:/opt/local/man
#setenv MANPATH "$MANPATH":/usr/dt/man:/usr/man:/usr/openwin/share/man

setenv ISTP_OPERATIONS_HOME /opt/local/lzp/bin
setenv ISTP_DEVELOPERS_HOME /export/home/dev/dps

if ( $USER == "wind" ) then

   echo ""
   echo "Welcome to WIND mission operations"
   echo ""
   setenv ORACLE_SID WIND
   setenv PACOR2HOME $ISTP_OPERATIONS_HOME/wind

else if ( $USER == "winddev" ) then

   echo ""
   echo "Welcome to WIND mission engineering"
   echo ""
   setenv ORACLE_SID WINDDEV
   setenv PACOR2HOME $ISTP_DEVELOPERS_HOME/wind

else if ( $USER == "polar" ) then

   echo ""
   echo "Welcome to POLAR mission operations"
   echo ""
   setenv ORACLE_SID POLAR
   setenv PACOR2HOME $ISTP_OPERATIONS_HOME/polar

else if ( $USER == "polardev" ) then

   echo ""
   echo "Welcome to POLAR mission engineering"
   echo ""
   setenv ORACLE_SID POLARDEV
   setenv PACOR2HOME $ISTP_DEVELOPERS_HOME/polar

else if ( $USER == "geotail" ) then

   echo ""
   echo "Welcome to GEOTAIL mission operations"
   echo ""
   setenv ORACLE_SID GEOTAIL
   setenv PACOR2HOME $ISTP_OPERATIONS_HOME/geotail

else if ( $USER == "geodev" ) then

   echo ""
   echo "Welcome to GEOTAIL mission engineering"
   echo ""
   setenv ORACLE_SID GEODEV
   setenv PACOR2HOME $ISTP_DEVELOPERS_HOME/geotail

else

   echo ""
   echo "Generic ISTP maintenance environment"
   echo ""
   setenv ORACLE_SID NULL
   setenv PACOR2HOME /opt/local/cm

endif

#	The ISTP environment was automatically selected based on the
#	the current UNIX user id.  The following lines may be used
#	by developers in order to override the default settings:

#setenv ORACLE_SID NULL
#setenv PACOR2HOME /export/home/dev/dps1/current/dps

#	The following lines source secondary ISTP DPS environment
#	scripts if present and issue warnings when not found.  It
#	is important to avoid anything that might cause the login
#	process to fail.  The secondary environment is required in
#	order to compile and/or run the ISTP LZP software.

setenv PICSHOME $PACOR2HOME/pics
if ( -f $PICSHOME/.dps_user_env ) then
source $PICSHOME/.dps_user_env
else
echo "WARNING: file not found: .dps_user_env"
endif
if ( -f $PICSHOME/.dps_compile_info ) then
source $PICSHOME/.dps_compile_info
else
echo "WARNING: file not found: .dps_compile_info"
endif
cd

#	Any C shell environment settings such as alias will be set in
#	the .cshrc file.  The .login file is only run once at login
#	and can only set aliases for the first csh.
