I'm rebuilding world and would like to have every other file not created by the rebuilding of world to be deleted. Is there some mergemaster option for this?
You can use the
delete-old-libs to remove obsolete files. They run interactively, unless you set
# pwd /usr/src # make -DBATCH_DELETE_OLD_FILES delete-old
Run them after
Have a look at build(7) for more details.
A word of warning - be careful with
delete-old-libs - it will delete anything that was not built as part of the current world/kernel so if any of your installed ports rely on older versions of any system libs, you'll need to reinstall the affected ports. I usually run
delete-old-libs after a complete port rebuild to avoid this problem.