#==============================================================
#
#  Abs:  A common setup for basic environment   
#
#  Name: commonSetup_swe.bash
#
#  Facility:  SLAC Development
#
#  Auth: 14-Sept-2011, Ernest Williams       (ernesto)
#  Rev:  dd-mmm-yyyy, Reviewer's Name     (USERNAME)
#
#--------------------------------------------------------------
#  Mod: Ernest Williams
#       Cloned from Jingchen
#==============================================================
#
# Clear most environment variables
#
export LD_LIBRARY_PATH=""
#
#set up CVS
#
if [ -d /afs/slac/g/lcls/cvs ]; then
	export CVSROOT=/afs/slac/g/lcls/cvs
else
	USER=`whoami`
#	export CVSROOT=:ext:${USER}@lcls-dev3:/afs/slac/g/lcls/cvs
fi
export CVS_RSH=ssh
if [ -z "$CVSIGNORE" ]; then
  export CVSIGNORE="O.* *~ *.class *.BAK core*"
fi
if [ -z "$CVSEDITOR" ]; then
  export CVSEDITOR=vi
fi

#
# set up common applications and packages  
#
# set up PYTHON
#
# Use Python on the local system for RHEL6

#if [ -f ${SWE_ROOT_RHEL6}/tools/python/setupPython.bash ]; then
#	. ${SWE_ROOT_RHEL6}/tools/python/setupPython.bash
#fi

#
# set up ORACLE
#
if [ -f ${SWE_ROOT_RHEL6}/tools/oracle/oracleSetup.bash ]; then
	. ${SWE_ROOT_RHEL6}/tools/oracle/oracleSetup.bash
fi
# set up common PATH
#
if [ -z `echo $PATH | grep /usr/local/bin` ]; then
  export PATH=$PATH:/usr/local/bin
fi
#
#set up common alias
#
alias rm='rm -i'
alias purge='/bin/rm '*~''
alias cvs='cvs -d `echo $CVSROOT`'
alias kinit='/usr/local/bin/kinit'

