<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.3492" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>I&nbsp;am 
maintaining&nbsp;multiple directory trees containing the Linux source plus 
applications programs for several embedded projects.&nbsp; The projects use a 
common set of build tools.&nbsp; There are several environment variables that 
must be set to provide configuration and makefiles with the location of the 
source code, install directories, etc.&nbsp; If I set these environment 
variables for one project&nbsp;in .bashrc then&nbsp;only that 
project&nbsp;builds correctly.&nbsp;&nbsp;</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=259275019-23112009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>I am looking for 
ideas for&nbsp;redefining the default variables in .bashrc, so I can build a 
different project.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=259275019-23112009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>I tried sourcing (.) 
bash scripts that export new values&nbsp;but found that did not work.&nbsp; It 
appears as if some sub shells created during the build are grabbing the 
environment variables' value&nbsp;that .bashrc set when the terminal shell 
opened.&nbsp; </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=259275019-23112009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>Creating&nbsp;unique 
environment variables for each project is not realistic.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN 
class=259275019-23112009></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>Currently I have to 
edit .bashrc, close the terminal, then reopen the terminal.&nbsp; Also not a 
great way.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><SPAN class=259275019-23112009><FONT face=Arial size=2>- 
laweber</FONT></SPAN></DIV></BODY></HTML>