etc/Makefile cleanup

Simon 'corecode' Schubert corecode at fs.ei.tum.de
Fri Jan 11 09:16:20 PST 2008


Matthias Schmidt wrote:
> * Simon 'corecode' Schubert wrote:
>> Matthias Schmidt wrote:
>>> Sascha suggested to install the FilesToRemove.inc with installworld to a
>>> temporary location and have "make upgrade" use this file instead of the
>>> one in the source tree.
>> That's good.  Maybe make it even more sophisticated and install the list of 
>> files to be removed.  Then after make upgrade, install this list as "files that 
>> were removed".  Next time, we'll only have to remove the files that were added 
>> (the delta), instead of blindly removing all files, even though they don't 
>> exist anymore.
> 
> Updated version with seatbelts for the user:
> 
> http://leaf.dragonflybsd.org/~matthias/etc_makefile_update.diff

I guess you would want to remove the file /var/tmp/FilesToRemove.inc as
well?

Additionally, I think you can't use [ -e ] on constructs like {man,cat}

cheers
  simon





More information about the Submit mailing list