From 6d36c4daf28b9d1730d368ccbe184cef99dc92ce Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sun, 15 Aug 2010 19:47:46 -0700 Subject: [PATCH] Fix brew server and document. --- Library/Contributions/examples/brew-server | 2 +- Library/Contributions/manpages/brew.1.md | 4 ++++ share/man/man1/brew.1 | 4 ++++ 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server index 15bd4dbb78..856baf2415 100755 --- a/Library/Contributions/examples/brew-server +++ b/Library/Contributions/examples/brew-server @@ -144,7 +144,7 @@ get '/formula/:name' do end end - used_by = Formula.get_used_by()[klass.name] + used_by = Formula.all.select{|ff| ff.deps.include?(klass.name)}.map{|f| f.name}.flatten.uniq.sort unless used_by == nil s << <<-HTML
Used by diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md index 1715752e15..613365dcfb 100644 --- a/Library/Contributions/manpages/brew.1.md +++ b/Library/Contributions/manpages/brew.1.md @@ -175,6 +175,10 @@ Some external commands are shipped with Homebrew, and enabled by default. * `missing`: Checks all installed formuale for missing dependencies. + * `server`: + Starts a local webserver with an app that lets you browse available + formulae, similar to `gem server`. + * `test` : A few formulae provide a test method. `brew test ` runs this test method. There is no standard output or return code, but it should diff --git a/share/man/man1/brew.1 b/share/man/man1/brew.1 index 8219a87617..245aee67ca 100644 --- a/share/man/man1/brew.1 +++ b/share/man/man1/brew.1 @@ -186,6 +186,10 @@ Downloads the tarball or checks out from VCS for the given \fIformula\fR\. For t Checks all installed formuale for missing dependencies\. . .TP +\fBserver\fR +Starts a local webserver with an app that lets you browse available formulae, similar to \fBgem server\fR\. +. +.TP \fBtest\fR \fIformula\fR A few formulae provide a test method\. \fBbrew test \fR runs this test method\. There is no standard output or return code, but it should generally indicate to the user if something is wrong with the installed formula\. .