asueee0
Advanced Member level 4
could some one convert the following csh code to bash code? thanks.
#---- Cadence user setup ----------------------------------------------
set base_dir = "$CDS_DIR"
setenv CDS $base_dir
setenv CDS_INST_DIR $base_dir
setenv CDS_LIC_FILE $CDS/share/license/license.dat
setenv CDSDIR $CDS/tools/dfII
setenv TERM $term
setenv TELENV $CDS/tools/pcb/text/env
setenv CDS_VHDL $CDS/tools/leapfrog
unsetenv cell
# the lib path setup looks at $CDS_SITE/cdssetup to find the "setup.loc" file
setenv CDS_SITE $CDS_INST_DIR/local
# use analog mode for netlisting everything
setenv CDS_Netlisting_Mode Analog
# Path additions
alias prepend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 "\!:2":${\!:1}'
alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 ${\!:1}:\!:2'
prepend PATH $CDS/tools/bin
prepend PATH $CDS/tools/dfII/bin
prepend PATH $CDS/tools/pcb/bin
prepend PATH $CDS/tools/awb/bin
prepend PATH $CDS_VHDL/bin
prepend PATH $CDS/tools/gsEnsemble/bin
extend MANPATH $CDS/share/man
#---- Start cdsd ------------------------------------------------------
# Need to leave cdsd running to clear file locks if cadence crashes.
# Add additional platforms as necessary.
if (( `uname -sr` =~ "SunOS 5.4") || ( `uname -sr` =~ "SunOS 5.5.1")) then
$CDS/tools/dfII/bin/bar > /dev/null
else
$CDS/tools/dfII/bin/cdsd > /dev/null
endif
unset base_dir
#---- End of Cadence Setup --------------------------------------
#---- Cadence user setup ----------------------------------------------
set base_dir = "$CDS_DIR"
setenv CDS $base_dir
setenv CDS_INST_DIR $base_dir
setenv CDS_LIC_FILE $CDS/share/license/license.dat
setenv CDSDIR $CDS/tools/dfII
setenv TERM $term
setenv TELENV $CDS/tools/pcb/text/env
setenv CDS_VHDL $CDS/tools/leapfrog
unsetenv cell
# the lib path setup looks at $CDS_SITE/cdssetup to find the "setup.loc" file
setenv CDS_SITE $CDS_INST_DIR/local
# use analog mode for netlisting everything
setenv CDS_Netlisting_Mode Analog
# Path additions
alias prepend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 "\!:2":${\!:1}'
alias extend 'if (-d \!:2) if ("$\!:1" \!~ *"\!:2"*) setenv \!:1 ${\!:1}:\!:2'
prepend PATH $CDS/tools/bin
prepend PATH $CDS/tools/dfII/bin
prepend PATH $CDS/tools/pcb/bin
prepend PATH $CDS/tools/awb/bin
prepend PATH $CDS_VHDL/bin
prepend PATH $CDS/tools/gsEnsemble/bin
extend MANPATH $CDS/share/man
#---- Start cdsd ------------------------------------------------------
# Need to leave cdsd running to clear file locks if cadence crashes.
# Add additional platforms as necessary.
if (( `uname -sr` =~ "SunOS 5.4") || ( `uname -sr` =~ "SunOS 5.5.1")) then
$CDS/tools/dfII/bin/bar > /dev/null
else
$CDS/tools/dfII/bin/cdsd > /dev/null
endif
unset base_dir
#---- End of Cadence Setup --------------------------------------