[wplug] Managing Environment Variables

Weber, Lawrence A Lawrence.Weber at ansaldo-sts.us
Mon Nov 23 15:11:53 EST 2009


I am maintaining multiple directory trees containing the Linux source
plus applications programs for several embedded projects.  The projects
use a common set of build tools.  There are several environment
variables that must be set to provide configuration and makefiles with
the location of the source code, install directories, etc.  If I set
these environment variables for one project in .bashrc then only that
project builds correctly.  
 
I am looking for ideas for redefining the default variables in .bashrc,
so I can build a different project.
 
I tried sourcing (.) bash scripts that export new values but found that
did not work.  It appears as if some sub shells created during the build
are grabbing the environment variables' value that .bashrc set when the
terminal shell opened.  
 
Creating unique environment variables for each project is not realistic.
 
Currently I have to edit .bashrc, close the terminal, then reopen the
terminal.  Also not a great way.
 
- laweber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20091123/a0166c62/attachment.html 


More information about the wplug mailing list