diff options
| author | Kieran Pilkington | 2009-09-25 19:04:34 +1200 |
|---|---|---|
| committer | Max Howell | 2009-09-29 16:26:37 +0100 |
| commit | aedaaf79bf0751d80879cbdab434b3d445f989cb (patch) | |
| tree | 68a6d6ec1c13d684c8a5beade0c7c22b63c0e7a9 /Library | |
| parent | 14818039ae920d43e86e39cc9f9dd106ce0c8fb7 (diff) | |
| download | brew-aedaaf79bf0751d80879cbdab434b3d445f989cb.tar.bz2 | |
brew list --unbrewed
Very quick way to find files not installed by homebrew.
Taken from a command by mxcl on the homebrew wiki.
.DS_Store files and bin/brew are ignored.
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/ARGV+yeast.rb | 2 | ||||
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 11 |
2 files changed, 12 insertions, 1 deletions
diff --git a/Library/Homebrew/ARGV+yeast.rb b/Library/Homebrew/ARGV+yeast.rb index 0f104f1df..63d983c9e 100644 --- a/Library/Homebrew/ARGV+yeast.rb +++ b/Library/Homebrew/ARGV+yeast.rb @@ -89,7 +89,7 @@ Commands: install formula ... [--debug|-d] [--interactive|-i] [--ignore-dependencies] remove formula ... search [regex] - list [-v] [formula] ... + list [--brewed] [--unbrewed] [formula] ... link formula ... unlink formula ... home formula ... diff --git a/Library/Homebrew/brew.h.rb b/Library/Homebrew/brew.h.rb index 6ddee7721..e7646c043 100644 --- a/Library/Homebrew/brew.h.rb +++ b/Library/Homebrew/brew.h.rb @@ -281,6 +281,17 @@ def warn_about_macports_or_fink end +def versions_of(keg_name) + `ls #{HOMEBREW_CELLAR}/#{keg_name}`.collect { |version| version.strip }.reverse +end + + +# Taken from the homebrew wiki (http://wiki.github.com/mxcl/homebrew) +def unbrewed_files + `cd #{HOMEBREW_PREFIX}; find bin etc include lib man share -type f \\( ! -iname ".ds_store" ! -iname "brew" \\)` +end + + ########################################################## class PrettyListing class PrettyListing def initialize path |
