MG: cshell scripts to sync sites.
This commit is contained in:
106
mg/cshrc
Normal file
106
mg/cshrc
Normal file
@@ -0,0 +1,106 @@
|
||||
#
|
||||
# Private settings
|
||||
#
|
||||
setenv PATH $HOME/local_rh_x64/bin:$HOME/bin:$HOME/devel/scripts/mg:$HOME/devel/scripts/bash:$PATH
|
||||
|
||||
set lpath=$HOME/local_rh_x64/lib:$HOME/local_rh_x64/lib64
|
||||
if ($?LD_LIBRARY_PATH) then
|
||||
setenv LD_LIBRARY_PATH $lpath\:$LD_LIBRARY_PATH
|
||||
else
|
||||
setenv LD_LIBRARY_PATH $lpath
|
||||
endif
|
||||
|
||||
#
|
||||
# MG global
|
||||
#
|
||||
setenv MGC_SITE `domainname`
|
||||
switch($MGC_SITE:q)
|
||||
case amy.mentorg.com:
|
||||
source /user/icdet/bin/detalias.arm.csh
|
||||
setenv MGLS_LICENSE_FILE 1717@amy-lic-01.amy.mentorg.com
|
||||
#setenv WG_SERVER /share/ic_wg_server/CACHED_WG_SERVER
|
||||
#setenv MGC_SERVER $WG_SERVER
|
||||
breaksw
|
||||
case wv.mentorg.com:
|
||||
source /user/icdet/bin/detalias.csh
|
||||
setenv MGLS_LICENSE_FILE 1717@wv-lic-01:1717@wv-lic-02:1717@wv-lic-03:1717@wv-lic-04:1717@wv-lic-05:1700@pevlic1:1700@pevlic4
|
||||
breaksw
|
||||
case sje.mentorg.com:
|
||||
source /user/icdet/bin/detalias.csh
|
||||
setenv MGLS_LICENSE_FILE 1717@wv-lic-01:1717@wv-lic-02:1717@wv-lic-03:1717@wv-lic-04:1717@wv-lic-05:1700@pevlic1:1700@pevlic4
|
||||
breaksw
|
||||
endsw
|
||||
|
||||
setenv LM_LICENSE_FILE $MGLS_LICENSE_FILE\:1717@wv-lic-toolworks.wv.mentorg.com
|
||||
|
||||
#
|
||||
# MG development environment
|
||||
#
|
||||
setenv CVSROOT :pserver:calcvs:/cvs/ic
|
||||
setenv BUILD64 1
|
||||
setenv VCO `/usr/mgc/bin/mgcvco`
|
||||
|
||||
setenv PATH $PATH\:/user/icdet/bin:/user/icbuild/bin:/user/pevtools/bin
|
||||
setenv PATH $PATH\:/usr/mgc/bin:/usr/mgc/lib/mgcms
|
||||
|
||||
set cpu_count=`/user/icdet/bin/count_processors`
|
||||
setenv PB "GMAKE_LIB_PARALLEL=-j$cpu_count GMAKE_SYSTESTS_PARALLEL=-j$cpu_count"
|
||||
setenv PB2 "GMAKE_EXEC_PARALLEL=-j"`/user/icdet/bin/figure_gmake_exec_ness`
|
||||
alias pmake 'gmake $PB $PB2'
|
||||
|
||||
#
|
||||
# VTune
|
||||
#
|
||||
if ( -x /opt/intel/vtune_amplifier_xe/amplxe-vars.sh ) then
|
||||
source /opt/intel/vtune_amplifier_xe/amplxe-vars.sh
|
||||
setenv LM_LICENSE_FILE $LM_LICENSE_FILE\:1717@rukbat.wv.mentorg.com
|
||||
endif
|
||||
|
||||
if ( -x /opt/intel/inspector_xe_2011/inspxe-vars.sh ) then
|
||||
source /opt/intel/inspector_xe_2011/inspxe-vars.sh
|
||||
endif
|
||||
|
||||
#
|
||||
# ICWBEV
|
||||
#
|
||||
alias icwbev $HOME/local_rh_x64/private/fw/bin/icwbev
|
||||
alias oasis_info $HOME/local_rh_x64/private/fw/bin/oasis_info
|
||||
|
||||
#
|
||||
# Aliases
|
||||
#
|
||||
|
||||
#############
|
||||
# if test -n "$DISPLAY"; then
|
||||
# if echo "$DISPLAY"|grep -q "localhost"; then
|
||||
# unset DISPLAY
|
||||
# fi
|
||||
# fi
|
||||
#
|
||||
# if test -z "$DISPLAY"; then
|
||||
# if test -n "$SSH_CLIENT"; then
|
||||
# REMOTEIP=`expr "$SSH_CLIENT" : '.*\([0-9]\{3\}\.[0-9]\{3\}\.[0-9]*\.[0-9]\{1,3\}\)'`
|
||||
# export DISPLAY=$REMOTEIP:0.0
|
||||
# elif test -n "$REMOTEHOST";then
|
||||
# export DISPLAY=$REMOTEHOST:0.0
|
||||
# fi
|
||||
# fi
|
||||
|
||||
#####################
|
||||
|
||||
# export MGC_HOME=/amy/cal_nightly/latest/ic/ic_superproj/aoi/Mgc_home
|
||||
# export MGC_BIN=$MGC_HOME/bin
|
||||
# export PATH=$MGC_BIN:$PATH
|
||||
|
||||
#echo "PATH = $PATH"
|
||||
|
||||
# export MGC_AMS_HOME=/tools/ELDO
|
||||
# export PATH=$PATH:$MGC_AMS_HOME/bin
|
||||
#####################
|
||||
|
||||
# export STRESS_HOME=/home/hhovsepy/Research/mgcstress
|
||||
# export SPICESIM=/home/hhovsepy/Research/tsmc45spice
|
||||
# export PATH=$SPICESIM:$STRESS_HOME:$PATH
|
||||
#for review-board
|
||||
# export PATH=/tools/ActivePython-2.5.4.4.x86_64/bin/:$PATH
|
||||
|
||||
7
mg/sync_home
Executable file
7
mg/sync_home
Executable file
@@ -0,0 +1,7 @@
|
||||
#!/bin/csh
|
||||
|
||||
cd
|
||||
rsync -avz amy-dev5:local_rh_x64 local_rh_x64
|
||||
rsync -avz amy-dev5:bin bin
|
||||
rsync -avz amy-dev5:.vim .vim
|
||||
|
||||
Reference in New Issue
Block a user