Add --force to brew cleanup
This commit is contained in:
parent
80ba991324
commit
e08ef940be
@ -146,9 +146,12 @@ didn't include with OS X.
|
|||||||
* `cat` <formula>:
|
* `cat` <formula>:
|
||||||
Display the source to <formula>.
|
Display the source to <formula>.
|
||||||
|
|
||||||
* `cleanup` [<formula>]:
|
* `cleanup [--force]` [<formula>]:
|
||||||
For all installed or specific formulae, remove any older versions from the
|
For all installed or specific formulae, remove any older versions from the
|
||||||
cellar.
|
cellar. By default, does not remove out-of-date keg-only brews, as other
|
||||||
|
software may link directly to specific versions.
|
||||||
|
|
||||||
|
If `--force` is passed, remove out-of-date keg-only brews as well.
|
||||||
|
|
||||||
* `log [git-log-options]` <formula> ...:
|
* `log [git-log-options]` <formula> ...:
|
||||||
Show the git log for the given formulae. Options that `git-log`(1)
|
Show the git log for the given formulae. Options that `git-log`(1)
|
||||||
|
|||||||
@ -28,7 +28,7 @@ module Homebrew extend self
|
|||||||
# Don't clean up keg-only brews for now.
|
# Don't clean up keg-only brews for now.
|
||||||
# Formulae link directly to them, so cleaning up old
|
# Formulae link directly to them, so cleaning up old
|
||||||
# ones will break already compiled software.
|
# ones will break already compiled software.
|
||||||
if f.keg_only?
|
if f.keg_only? and not ARGV.force?
|
||||||
opoo "Skipping keg-only #{f.name}" if rack.children.length > 1
|
opoo "Skipping keg-only #{f.name}" if rack.children.length > 1
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
.\" http://github.com/rtomayko/ronn/tree/0.7.3
|
||||||
.
|
.
|
||||||
.TH "BREW\-MAN" "1" "January 2011" "Homebrew" "brew"
|
.TH "BREW\-MAN" "1" "March 2011" "Homebrew" "brew"
|
||||||
.
|
.
|
||||||
.SH "NAME"
|
.SH "NAME"
|
||||||
\fBbrew\-man\fR \- Generate man pages for Homebrew
|
\fBbrew\-man\fR \- Generate man pages for Homebrew
|
||||||
|
|||||||
@ -163,8 +163,11 @@ Check your system for potential problems\.
|
|||||||
Display the source to \fIformula\fR\.
|
Display the source to \fIformula\fR\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBcleanup\fR [\fIformula\fR]
|
\fBcleanup [\-\-force]\fR [\fIformula\fR]
|
||||||
For all installed or specific formulae, remove any older versions from the cellar\.
|
For all installed or specific formulae, remove any older versions from the cellar\. By default, does not remove out\-of\-date keg\-only brews, as other software may link directly to specific versions\.
|
||||||
|
.
|
||||||
|
.IP
|
||||||
|
If \fB\-\-force\fR is passed, remove out\-of\-date keg\-only brews as well\.
|
||||||
.
|
.
|
||||||
.TP
|
.TP
|
||||||
\fBlog [git\-log\-options]\fR \fIformula\fR \.\.\.
|
\fBlog [git\-log\-options]\fR \fIformula\fR \.\.\.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user