Issy Long 1ab843ba47
bump-formula-pr: Only delete Linux bottle line if it exists
- We have some Linux-only formulae that don't have bottles.
- Previously, bumping a Linux-only formula that didn't have a bottle
  line - eg, `adoptopenjdk` which is `bottle :unneeded` - would fail:

```
Error: inreplace failed
/app/linuxbrew/Homebrew/Library/Taps/homebrew/homebrew-core/Formula/adoptopenjdk.rb:

expected replacement of /^    sha256 ".+" => :x86_64_linux\n/m with "\2"
```
2020-02-14 22:41:31 +00:00
..
2020-02-11 12:14:14 +11:00
2020-02-05 20:22:21 +00:00
2020-02-11 12:38:38 +00:00
2019-12-19 12:01:51 +00:00
2020-01-26 14:38:32 +11:00
2020-02-02 16:36:37 +01:00
2020-01-28 10:12:24 -06:00
2019-11-28 15:10:50 +00:00
2020-02-05 20:22:21 +00: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!