diff options
| author | Adam Vandenberg | 2009-11-16 15:31:15 -0800 |
|---|---|---|
| committer | Adam Vandenberg | 2009-11-19 14:03:07 -0800 |
| commit | 95e398ab130b1edd5346b74e684c30f02ce61e62 (patch) | |
| tree | 7731c3702c4cabdaa126f5ebd3714e6d86a02d2e /bin | |
| parent | af29299f37417f436f6fb0a612578abb3edfd21b (diff) | |
| download | brew-95e398ab130b1edd5346b74e684c30f02ce61e62.tar.bz2 | |
Add alias support to formulae
* brew install will find an aliased formula
* aliases are searched against
* warn when creating a new formula that has an existing alias.
If Subversion has an alias "svn", then warn when the user tries to
create a new formula "svn". The formula can still be created, though
the user should make sure it's not a duplicate of the existing
aliased one.
Subversion and Objective-Caml formulas get some alises here, so we have
something to test against.
Diffstat (limited to 'bin')
| -rwxr-xr-x | bin/brew | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -98,7 +98,9 @@ begin end when 'search', '-S' - formulae = (HOMEBREW_REPOSITORY+'Library/Formula').children.sort.map{|f| f.basename('.rb') } + require "formula" + formulae = Formulary.names with_aliases=true + if ARGV.first =~ /^\/(.*)\/$/ puts_columns formulae.grep(Regexp.new($1)) else |
