Files
brew/Library/Homebrew
Doug Hazell 0bb0228962 Presumably the "env -I" was a typo for "env -i"
Just sourcing brew.sh causes the "Example usage" msg due to lacking command args but changing the last line of your suggestion to:
  /bin/bash "$HOMEBREW_LIBRARY/Homebrew/brew.sh" "$@"
worked.

If all of the 'HOMEBREW.*' vars, that other parts of the system require, are only added in brew.sh then your suggestion is cleaner.
2017-02-12 14:31:37 +00:00
..
2017-01-03 18:08:02 +00:00
2016-10-04 22:57:08 -07:00
2016-11-21 08:48:26 +00:00
2016-10-23 14:44:14 +02:00
2016-09-25 19:55:34 +02:00
2017-01-16 21:48:27 +00:00
2016-12-20 10:22:30 +00:00
2016-10-30 16:14:51 -04:00
2016-09-23 18:19:53 +02:00
2016-09-23 15:30:07 +02:00
2016-11-13 23:00:47 +01:00
2016-12-30 20:20:13 +00:00
2016-12-30 20:20:13 +00:00
2016-09-23 15:30:06 +02:00
2016-10-01 20:00:49 +02:00
2016-09-23 18:19:53 +02:00
2016-09-23 18:19:53 +02:00
2016-10-22 13:32:46 +01:00
2016-11-03 12:09:44 +00:00
2016-10-02 00:24:47 +02:00
2017-01-04 11:13:41 +00:00
2016-09-24 12:24:35 +02:00
2016-09-23 18:19:53 +02:00
2016-09-21 11:45:47 -05:00
2017-01-04 11:13:41 +00:00
2016-10-12 15:37:33 +01:00
2016-11-13 23:00:47 +01:00
2016-12-20 10:22:30 +00:00
2016-12-30 20:20:13 +00:00
2017-01-04 00:56:06 +00:00
2016-12-13 01:53:05 +00:00
2016-11-10 15:09:36 -08:00

Homebrew's Formula API

This is the (partially) documented public API for Homebrew.

The main class you should look at is the {Formula} class (and classes linked from there). That's the class that's used to create Homebrew formulae (i.e. package descriptions). Assume anything else you stumble upon is private.

You may also find the Formula Cookbook and Ruby Style Guide helpful in creating formulae.

Good luck!