Maxim Belkin 22bc5a94e7
Properly handle outdated cURL
`HOMEBREW_CURL_PATH` has an effect only when `HOMEBREW_DEVELOPER` is set. However, the part of `brew.sh` that prints a message about outdated cURL disregards the value of `HOMEBREW_DEVELOPER`, which leads to a misleadnig message telling the user that `HOMEBREW_CURL_PATH` is outdated even though another cURL was used/tested.

This PR fixes it and instructs Homebrew to:

1. Display a warning message when system cURL is outdated and either `HOMEBREW_CURL_PATH` **or `HOMEBREW_DEVELOPER`** are not set. New `HOMEBREW_CURL_WARNING` variable is set to display the above warning only once (useful when `brew` calls itself internally).
2. Display `Installing Homebrew cURL` before auto-installing cURL in `update.sh` (due to `HOMEBREW_FORCE_BREWED_CURL`) and stop/exit if this step fails.
3. Display `Installing Homebrew Git` before auto-installing Git in `update.sh` (due to `HOMEBREW_FORCE_BREWED_GIT`) and stop/exit if this step fails.
2020-11-19 10:14:10 -06:00
..
2020-11-17 11:09:55 +01:00
2020-11-19 10:14:10 -06:00
2020-11-17 11:09:55 +01:00
2020-11-17 11:09:55 +01:00
2020-11-16 08:02:50 -05:00
2020-11-16 02:05:29 +01:00
2020-11-12 17:06:47 +00:00
2020-11-17 12:20:08 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-12 17:06:47 +00:00
2020-11-13 12:26:36 +01:00
2020-11-19 10:14:10 -06:00
2020-11-16 02:05:29 +01:00
2020-11-16 02:05:29 +01:00
2020-11-11 08:52:55 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-17 11:09:55 +01:00
2020-11-16 02:05:29 +01:00
2020-11-16 08:02:50 -05:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-16 02:05:29 +01:00
2020-11-13 12:26:36 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-17 11:09:55 +01:00
2020-11-12 17:06:47 +00:00
2020-11-13 12:26:36 +01:00
2020-11-16 02:05:29 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-05 23:50:55 -05:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-16 02:05:29 +01:00
2020-11-05 23:50:55 -05:00
2020-11-17 11:09:55 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-17 11:09:55 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-13 12:26:36 +01:00
2020-11-17 11:09:55 +01:00
2020-11-04 18:53:03 -05:00
2020-11-05 00:53:12 -05:00
2020-11-16 02:02:52 +01:00
2020-11-13 12:26:36 +01:00
2020-11-16 02:05:29 +01:00

Homebrew's Formula API

This is the 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!