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/Homebrew/brew.h.rb | |
| 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/Homebrew/brew.h.rb')
| -rw-r--r-- | Library/Homebrew/brew.h.rb | 11 |
1 files changed, 11 insertions, 0 deletions
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 |
