.bashrc

From Daya Bay

Jump to: navigation, search

For the IHEP cluster your .bashrc should include something along the lines of the following:

export PATH=/bin:/usr/bin:/usr/local/bin:${PATH}
export MANPATH=/usr/share/man:/usr/local/man:/usr/man:/usr/X11R6/man
export CERN_LEVEL=97a

if [ ! $?NUWA_RELEASE -o $1 == "" ]; then
    export NUWA_RELEASE=NuWa-0.1.0
else
    export NUWA_RELEASE=$1
fi

if [ -f /ihepbatch/dyb/dybsw/local/etc/bashrc_general ]; then
    source /ihepbatch/dyb/dybsw/local/etc/bashrc_general
fi

if [ ! -z "$CMTPROJECTPATH" ] ; then
    pushd $DYBHOME/NuWa/$NUWA_RELEASE/dybgaudi/DybRelease/cmt
    source cleanup.sh
    popd
fi

pushd $DYBHOME/NuWa/$NUWA_RELEASE/setup
source setup.sh
popd
pushd $DYBHOME/NuWa/$NUWA_RELEASE/dybgaudi/DybRelease/cmt
source setup.sh
popd

For PDSF the following is appropriate:

if [ -r /home/users/startup/pdsf.bashrc ] ; then
    . /home/users/startup/pdsf.bashrc
fi

module add subversion

export DYBHOME=/common/dayabay/global
export NUWA_RELEASE=NuWa-0.0.5

pushd $DYBHOME/NuWa/$NUWA_RELEASE/setup
source setup.sh
popd
pushd $DYBHOME/NuWa/$NUWA_RELEASE/dybgaudi/DybRelease/cmt
source setup.sh
popd
Personal tools