aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Vandenberg2010-08-15 19:47:46 -0700
committerAdam Vandenberg2010-08-15 19:47:46 -0700
commit06a471944c46a0b7b5508f14f1d87cb0adb8df68 (patch)
tree28ab689a7cce04f3ac2dc78d88572e3aebeacc5c
parent333dab107b9a517ccef76ff3adee6b2cf1fe06af (diff)
downloadhomebrew-06a471944c46a0b7b5508f14f1d87cb0adb8df68.tar.bz2
Fix brew server and document.
-rwxr-xr-xLibrary/Contributions/examples/brew-server2
-rw-r--r--Library/Contributions/manpages/brew.1.md4
-rw-r--r--share/man/man1/brew.14
3 files changed, 9 insertions, 1 deletions
diff --git a/Library/Contributions/examples/brew-server b/Library/Contributions/examples/brew-server
index 15bd4dbb7..856baf241 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
<dt>Used by</td>
diff --git a/Library/Contributions/manpages/brew.1.md b/Library/Contributions/manpages/brew.1.md
index 1715752e1..613365dcf 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` <formula>:
A few formulae provide a test method. `brew test <formula>` 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 8219a8761..245aee67c 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 <formula>\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\.
.