diff options
Diffstat (limited to 'Library/Homebrew/cmd/create.rb')
| -rw-r--r-- | Library/Homebrew/cmd/create.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/create.rb b/Library/Homebrew/cmd/create.rb index a468189c4..791ff23d9 100644 --- a/Library/Homebrew/cmd/create.rb +++ b/Library/Homebrew/cmd/create.rb @@ -1,3 +1,20 @@ +#: * `create` <URL> [`--autotools`|`--cmake`] [`--no-fetch`] [`--set-name` <name>] [`--set-version` <version>]: +#: 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. For the complete API have a look at +#: +#: <http://www.rubydoc.info/github/Homebrew/brew/master/Formula> +#: +#: 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. +#: +#: If `--no-fetch` is passed, Homebrew will not download <URL> to the cache and +#: will thus not add the SHA256 to the formula for you. +#: +#: The options `--set-name` and `--set-version` each take an argument and allow +#: you to explicitly set the name and version of the package you are creating. + require "formula" require "blacklist" require "digest" |
