2009-06-18 18:34:47

If I have some time...

/site/coda/2.6/.setup file was written by csh. The most of lines can be directly converted to bash. For example,

setenv CODA_VERSION 2.6 -> export CODA_VERSION=2.6


if ($?CODA != "1") then  -> if [[ $CODA != "1" ]]; then
    setenv CODA       /site/coda/2.6 -> export CODA=/site/coda/2.6
endif -> fi

The two following lines are will be changed

set lpath = "`echo $path | sed s+$CODA_BIN++g`"
set path = ($CODA_BIN $lpath)

to

export lpath = "`echo $PATH | sed s+$CODA_BIN++g`"
export PATH  =$CODA_BIN:$lpath

The first line means "read PATH, remove $CODA_BIN, and save it into $lpath. The second line does that make PATH contains $CODA_BIN and $lpath. Thus, we want to put $CODA_BIN before $lpath. If I have some times, will try to configure the QwAnalysis configuration within the BASH shell environment.

Posted by Jeong Han Lee | Permanent link