Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

1.1 - Scripts to set some environment variables 

 

Wiki Markup
The script [.SetSoftRelease|^.SetSoftRelease](\[\][.SetSoftRelease_bash|^.SetSoftRelease_bash] for bash or sh shell) sets the environement variables CMTCONFIG (to "rh9_gcc32opt"), GLAST_EXT (to "/afs/slac/g/glast/ground/GLAST_EXT/$CMTCONFIG") and the variable CMTPATH. The first 2 point to the directory where all the software packages hang, therefore they DO NOT need to be replaced. On the other hand, the variable CMTPATH points to the specific software package to be used, and consequently it needs to be modified every time you want to change software package or release. Because of that, the script has 2 arguments:

 

  1. Software package; _BeamtestRelease, EngineeringModel... _
  2. Release version: v3r0907p2, v6r070329p17 ...

An example of how to use it follows:

source [] .SetSoftRelease  BeamtestRelease v3r0907p2

I have this script in my home directory, which allows me to call it from everywhere in the following way:

source $HOME/[].SetSoftRelease BeamtestRelease v3r0907p2

...