Skip to content

Commit

Permalink
man brew: Mention the example-formula.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
samueljohn committed Aug 20, 2013
1 parent fa05a1b commit 400dc59
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion Library/Contributions/manpages/brew.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ Note that these flags should only appear after a command.
Generate a formula for the downloadable file at <URL> and open it in the editor.
Homebrew will attempt to automatically derive the formula name
and version, but if it fails, you'll have to make your own template. The wget
formula serves as a simple example.
formula serves as a simple example. For a complete cheat-sheet, have a look at

`$(brew --prefix)/Library/Contributions/example-formula.rb`

If `--autotools` is passed, create a basic template for an Autotools-style build.
If `--cmake` is passed, create a basic template for a CMake-style build.
Expand Down
5 changes: 4 additions & 1 deletion share/man/man1/brew.1
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,10 @@ If \fB\-s\fR is passed, scrubs the cache, removing downloads for even the latest
.
.TP
\fBcreate <URL> [\-\-autotools|\-\-cmake] [\-\-no\-fetch] [\-\-set\-name <name>] [\-\-set\-version <version>]\fR
Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The wget formula serves as a simple example\.
Generate a formula for the downloadable file at \fIURL\fR and open it in the editor\. Homebrew will attempt to automatically derive the formula name and version, but if it fails, you\'ll have to make your own template\. The wget formula serves as a simple example\. For a complete cheat\-sheet, have a look at
.
.IP
\fB$(brew \-\-prefix)/Library/Contributions/example\-formula\.rb\fR
.
.IP
If \fB\-\-autotools\fR is passed, create a basic template for an Autotools\-style build\. If \fB\-\-cmake\fR is passed, create a basic template for a CMake\-style build\.
Expand Down

0 comments on commit 400dc59

Please sign in to comment.