makeにdelete-oldターゲットが作られました

修正

To rebuild everything and install it on the current system.
                                                                                                                    • -
# Note: sometimes if you are running current you gotta do more than # is listed here if you are upgrading from a really old current. make buildworld make kernel KERNCONF=YOUR_KERNEL_HERE [1] [3] mergemaster -p [5] make installworld make delete-old mergemaster [4]

commit log

Add delete-old and delete-old-libs targets:

  • removes obsolete files/dirs or libraries.
  • works in interactive (default) and batch mode
  • respects DISTDIR
  • documented in UPDATING and build(7)

The head of the file ObsoleteFiles.inc contains instructions how to add obsolete files/dirs/libs to the list. Obviously one should add obsolete files to this list, when he removes a file/dir/lib from the basesystem.
Additionally add check-old target:

  • allows re@ to check if a file on the obsolete list resurfaces

Design goals:

  • allows full control by the user (default interactive mode)
  • possibility of scripted removal of obsolete files (batch mode)
  • opt-in removal of files (explicit list of files)
  • seperate removal of libs (2 delete targets)

Important design decissions:

  • structured list of files to remove instead of a plain text file:
    • allows to remove additional files if a NO_foo knob is specified without the need to change the targets (no NO_foo knob is respected yet)
  • not using mtree like NetBSD does:
    • mtree doesn't has an interactive mode
Discussed on
arch (long ago), current (this year)
Additional input from
re (hrs)
Approved by
mentor (joerg)

$FreeBSD: src/UPDATING,v 1.419 2005/07/23 14:23:30 netchild Exp $