I have finally read the to do list

Gerard Beekmans gerard at linuxfromscratch.org
Thu Jan 18 05:22:03 PST 2001


On January 16, 2001 04:35 pm, Chris Snyder wrote:
> Would it be possible to write something that would parse the makefile
> and look for all commands that are needed?  Maybe you could even figure
> out what is being installed (for uninstallation) on the fly using a
> script at install-time.

That's not always easily done like that. Often there are for loops and 
complex matters of hundreds of Makefile's to parse. Such a script would be 
very complex and very error prone. The easier solution which is much more 
reliable i think, is to scan the harddisk for changes after an installation 
and list what has been changed (files added, removed, replaced). That's as 
acurate as scanning Makefile files for commands but less complex. Such a 
script (the one that scans the harddisk) can be as simple as merely 6 lines 
(after removing all the echo lines). Nothing fancy in those 6 lines of course 
like error checking/handling.

-- 
Gerard Beekmans
www.linuxfromscratch.org

-*- If Linux doesn't have the solution, you have the wrong problem -*-

-- 
Unsubscribe: send email to lfs-discuss-request at linuxfromscratch.org
and put unsubscribe in the subject header of the message




More information about the lfs-dev mailing list