# .bashrc # # Source global definitions # if [ -f /etc/bashrc ]; then . /etc/bashrc elif [ -f $HOME/.bashrc.etc ]; then . $HOME/.bashrc.etc fi # # Don't source the rest twice. # if [ "$BASHRC_VAHAGNK_DONT_SOURCE_THIS_FILE_TWICE" == "true" ]; then return fi export BASHRC_VAHAGNK_DONT_SOURCE_THIS_FILE_TWICE=true # # Useful functions. # function prepath() { [ -e $1 ] && PATH=$1:$PATH } function postpath() { [ -e $1 ] && PATH=$PATH:$1 } # # Find out system details. # kernel=`uname -s` hostnm=`hostname` krelease=`uname -r` # # Get synopsys variant. # if [ -z "$SYNVARIANT" ]; then SYNVARIANT=amd64 [ -e /usr/local/bin/snps_arch ] && SYNVARIANT=`/usr/local/bin/snps_arch -64` fi # # SES Setup for Build # configure the DFM build environment #. /remote/nti/utility/startup/dfm-am.sh # siteid="none" [ -f /usr/local/bin/siteid ] && siteid=`/usr/local/bin/siteid` if [ $siteid = us01 ]; then SYNOPSYS_SITE=US01 DFM_MV_STARTUP_HOME=/remote/nti/utility/startup LM_LICENSE_FILE=26585@us01_lic4:26585@us01_lic5:26585@us01-lic6:26530@us01-lic10 elif [ $siteid = us03 ]; then SYNOPSYS_SITE=US03 DFM_MV_STARTUP_HOME=/remote/ntitoolsstartup LM_LICENSE_FILE=26585@us03-lic1:26585@us03-lic2:26585@us03-lic4:26585@us03-lic5 elif [ $siteid = am04 ]; then SYNOPSYS_SITE=AM04 DFM_MV_STARTUP_HOME=/remote/ntitoolsstartup LM_LICENSE_FILE=26585@am04-lic2:26585@am04-lic1 else SYNOPSYS_SITE= DFM_MV_STARTUP_HOME= LM_LICENSE_FILE= fi export SYNOPSYS_SITE export SYNOPSYS_BU=DFM export QSC=G prepath /depot/qsc/QSC${QSC}/bin # # A bunch of license servers which we don't use currently. # # avantd:tool LMFILE2=1700@stoat:27009@nefertiti # TE_CATS:snpslmd:numeritchd:avantd:tmald:CADABRA LMFILE3=1702@us01_lic1:1701@us01_lic1:1706@us01_lic1:7182@us01_lic1:1704@us01_lic1:1705@us01_lic1 # snpslmd,numeritchd,TE_CATS LMFILE4=27000@crossroads # TE_CATS:snpslmd:numeritchd:avantd:tmald:CADABRA LMFILE5=1702@us01_lic2:26585@us01_lic2:1706@us01_lic2:27000@us01_lic2:1704@us01_lic2:1705@us01_lic2 # snpslmd,numeritchd,TE_CATS LMFILE6=27000@tyndall # TE_CATS:snpslmd:numeritchd:avantd:tmald:CADABRA LMFILE7=1702@us01_lic3:26585@us01_lic3:1706@us01_lic3:27000@us01_lic3:1704@us01_lic3:1705@us01_lic3 LMFILE=$LMFILE1:$LMFILE2:$LMFILE3:$LMFILE4:$LMFILE5:$LMFILE6:$LMFILE7 #export LM_LICENSE_FILE=$LM_LICENSE_FILE:$LMFILE # # VIM # VIMDIR=/depot/vim-7.3/bin #if [ "$hostnm" == "icwb-nemrut" ]; then # VIMDIR=/depot/vim-7.1/bin #fi VIM=${VIMDIR}/vim if [ "$kernel" == "Linux" ]; then alias vi=$VIM alias vim=$VIM alias gvim=${VIMDIR}/gvim alias ctags="/depot/ctag-5.5.4/bin/ctags" fi # # GIT # [ -f /remote/icwbam3/tools/etc/git-completion.bash ] && . /remote/icwbam3/tools/etc/git-completion.bash # # P4 # [ -f /remote/icwbam3/tools/etc/p4-completion.bash ] && . /remote/icwbam3/tools/etc/p4-completion.bash export P4PORT=p4p-`/usr/local/bin/siteid`:1700 export P4USER=vahagnk export P4EDITOR=$VIM export P4CONFIG=.p4config alias p4="/depot/perforce/p4" alias p4v="/depot/perforce/p4v" # # GCC # if [ -e /depot/gcc-4.7.2/bin ]; then PATH=/depot/gcc-4.7.2/bin:$PATH LD_LIBRARY_PATH=/depot/gcc-4.7.2/lib64:$LD_LIBRARY_PATH elif [ -e /depot/gcc-4.7.0/bin ]; then PATH=/depot/gcc-4.7.0/bin:$PATH LD_LIBRARY_PATH=/depot/gcc-4.7.0/lib64:$LD_LIBRARY_PATH elif [ -e /depot/gcc-4.5.2/bin ]; then PATH=/depot/gcc-4.5.2/bin:$PATH LD_LIBRARY_PATH=/depot/gcc-4.5.2/lib64:$LD_LIBRARY_PATH fi # # GDB # prepath /depot/gdb-7.5.1/bin # # VTune Amplifier # export INTEL_LICENSE_FILE=28518@us01-lic10:28518@us01-lic11:28518@us01-lic12:28518@tyndall alias vtune=/depot/vtune_amplifier_xe_2013_update5/bin64/amplxe-gui # # TotalView # TV_LFILE=8127@us01-lic10:8127@us01-lic11:8127@us01-lic12 LM_LICENSE_FILE=$LM_LICENSE_FILE:$TV_LFILE alias totalview="/depot/totalview_8.6.0-3/toolworks/totalview.8.6.0-3/bin/totalview" # # PURIFY and all. # postpath /depot/coverity/swat/bin export RSU_TEMPLATE2_INI=/depot/pure/templates2.ini export RSU_LICENSE_MAP=/depot/pure/PurifyPlus_License_Map export PURECOVOPTIONS="-force-rebuild=no -log-file=./%v.%p.log -counts-file=./%v.%p.pcv -windows=no" export PUREOPTIONS="-force-rebuild=no -always-use-cache-dir=yes -cache-dir=$HOME/tmp/pure_cache" export QUANTIFYOPTIONS="-force-rebuild=no -always-use-cache-dir=yes -cache-dir=$HOME/tmp/pure_cache" #export LD_LIBRARY_PATH=$HOME/prj/fw/rmain/3pty/qt/4.7.2/amd64/lib:$LD_LIBRARY_PATH alias purecov="/depot/swe/a2007.12/bin/purecov" #alias quantify"/depot/swe/a2007.12/bin/quantify" # # User specific environment and startup programs # prepath /remote/nti/bin postpath /depot/xclip-0.10/bin postpath /depot/tools/ccollab/bin postpath /remote/nti/install/lavis/lavis-4.1.0/bin prepath $HOME/local/texlive/bin/x86_64-linux prepath $HOME/local/bin prepath $HOME/bin [ "$SYNVARIANT" == "amd64" ] && prepath /remote/icwbam3/tools/crte/amd64 [ "$SYNVARIANT" == "amd64" ] && prepath /remote/icwbam3/tools/bin # # ICWB build and run # export FW_DBG_MODE=batch #export FW_DBG_MODE=gdb export STACK_TRACER_SYMBOL_ENCRYPTION_DISABLED=1 #export DERIVED_ARCH=$SYNVARIANT #export TARGET_ARCH=$SYNVARIANT # # set alias for ICWB(EV)+ # alias cdfw="cd ~/prj/fw/main" alias fwgdb="~/bin/fwtest.sh -fw gdb" alias fwrun="~/bin/fwtest.sh -fw run" alias fwtest="~/bin/fwtest.sh" #alias synmake="/remote/nti/bin/synmake" alias fwtags="find . -type d -exec /depot/ctag-5.5.4/bin/ctags -R --verbose --include \*.h --include \*.c --include \*.cpp --exclude=\"boost\" --exclude=\"hp64*\" --exclude=\"sparc64*\" --exclude=\"linux*\" --exclude=\"aix64*\" --exclude=\"suse32*\" --exclude=\"suse64*\" --exclude=\"win32\" --exclude=\"*stage*\" --exclude=\"*no_sync*\" -f \{\}/tags \{\} \;" alias cleantemp="rm -rf ~/temp/*icwb*" alias vncserver="/usr/bin/vncserver" alias mygrep="grep -R --include *.cpp --include *.h" alias localParse="/remote/nti/test_suite/icwb/common/utilities/localParse.pl" # # Make sure to export PATH # export PATH export LM_LICENSE_FILE export SYNVARIANT