Skip to content
Snippets Groups Projects
Commit 6a49d012 authored by Dominik Smith's avatar Dominik Smith
Browse files

Updated README.md to include instructions regarding the -p and -a options of...

Updated README.md to include instructions regarding the -p and -a options of config.sh and config.csh.
parent df1c517c
No related branches found
No related tags found
1 merge request!897Updated README.md to include instructions regarding the -p and -a options of...
Pipeline #18070 passed
...@@ -138,11 +138,18 @@ From your build directory, then call ...@@ -138,11 +138,18 @@ From your build directory, then call
After your build is complete, before running any part of CbmRoot from a shell, After your build is complete, before running any part of CbmRoot from a shell,
a large number of environment variables must be set, which contain various a large number of environment variables must be set, which contain various
library and include paths. This is done automatically by executing the "config.sh" library and include paths. This is done automatically by executing the "config.sh"
or "config.csh" script from your CbmRoot build directory. If you are using or "config.csh" script from your CbmRoot build directory.
a Bash shell, you can add the following line to .bashrc to further automate
this step:
source ~/build_cbmroot/config.sh > /dev/null 2>&1 Please note, that you must supply the argument "-p" (prepend) or "-a" (append) to
these scripts, depending on whether you wish to add the new entries at the front or
back of existing environment variables. Failing to do so will cause the variables
to be overwritten, and may render your shell inoperable. This behavior may be desired
in some cases, e.g. on the Virgo cluster.
If you are using a Bash shell, you can add the following line to .bashrc to further
automate this step:
source ~/build_cbmroot/config.sh -a > /dev/null 2>&1
The problem with this automatisation is that it frequently results in The problem with this automatisation is that it frequently results in
problems if you use more than one combination of FairSoft/FairRoot/Cbmroot. problems if you use more than one combination of FairSoft/FairRoot/Cbmroot.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment