Hi all,
i'm having a small problem scripting my BLFS build. The issue it how do i 
'refresh' the environment from within a script after the script has appended 
extra paths to the /etc/profile. If i just type 'source /etc/profile' at the 
command prompt it works ok but within the script it is local to my shell 
script. Updating the ld.so.conf always works with ldconfig for the libraries, 
but how is it done for the environment?

I have a master script that basicaly says make package1, make package2 etc. 
Each package is built from a makefile (with depndancies) via a script (for 
each) written according to the BLFS book (6.2). In fact its mostly a rewrite of 
jhalfs extended to include BLFS.

As an example, building the KDE suite of packages, i set up the 
KDE_PREFIX=/opt/kde at the same time as building arts. The build script 
includes the commands that append additional paths to the /etc/profile. When 
the next package (kdelibs) commences its build process, the $PATH has not been 
updated to include /opt/kde/bin nor the KDE_PREFIX required for configure.

I know that i could hard code this in each script but i'm trying to write it so 
that it can be easily changed back to the standard /usr without having to redit 
each script.

Basicaly i'm looking for a 'vitual login command' that refreshes the 
environment without changing my $PWD.

Any suggestions would be appreciated.

Greg
-- 
http://linuxfromscratch.org/mailman/listinfo/blfs-support
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to