<!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 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. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=259275019-23112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>I am looking for
ideas for 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> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>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. </SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=259275019-23112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>Creating unique
environment variables for each project is not realistic.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=259275019-23112009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=259275019-23112009>Currently I have to
edit .bashrc, close the terminal, then reopen the terminal. Also not a
great way.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=259275019-23112009><FONT face=Arial size=2>-
laweber</FONT></SPAN></DIV></BODY></HTML>