Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Please convert the following csh code to bash code

Status
Not open for further replies.

asueee0

Advanced Member level 4
Full Member level 1
Joined
Dec 26, 2005
Messages
109
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,296
Activity points
2,299
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 --------------------------------------
 

Status
Not open for further replies.

Similar threads

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top