aboutsummaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorAlexander Leidinger <netchild@FreeBSD.org>2005-07-23 14:23:30 +0000
committerAlexander Leidinger <netchild@FreeBSD.org>2005-07-23 14:23:30 +0000
commite2a36081539d334f640aeceb235a54b28cae3b1d (patch)
tree625edb345769982da8729c698c2b5a4609b59bad /share
parent9133b639024770121ef64cf2765991db4063ebc3 (diff)
downloadsrc-e2a36081539d334f640aeceb235a54b28cae3b1d.tar.gz
src-e2a36081539d334f640aeceb235a54b28cae3b1d.zip
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)
Notes
Notes: svn path=/head/; revision=148330
Diffstat (limited to 'share')
-rw-r--r--share/man/man7/build.711
1 files changed, 10 insertions, 1 deletions
diff --git a/share/man/man7/build.7 b/share/man/man7/build.7
index 2af6cacaa609..e37e2418196c 100644
--- a/share/man/man7/build.7
+++ b/share/man/man7/build.7
@@ -24,7 +24,7 @@
.\"
.\" $FreeBSD$
.\"
-.Dd February 23, 2005
+.Dd July 23, 2005
.Dt BUILD 7
.Os
.Sh NAME
@@ -95,6 +95,15 @@ Equivalent to
.Cm buildkernel
followed by
.Cm installkernel
+.It Cm delete-old
+Delete obsolete base system files and directories interactively.
+When -DBATCH_DELETE_OLD_FILES is specified at the command line,
+the delete operation will be non-interactively.
+.It Cm delete-old-libs
+Delete obsolete base system libraries interactively.
+This should only be used if no 3rd party software uses the libraries anymore.
+When -DBATCH_DELETE_OLD_FILES is specified at the command line,
+the delete operation will be non-interactively.
.El
.Pp
For more information about the ports build process, see