Skip to content

Commit eeec637

Browse files
committed
Extend tap instructions for both users and developers
1 parent affa569 commit eeec637

File tree

1 file changed

+40
-6
lines changed

1 file changed

+40
-6
lines changed

doc/ADR/homebrew_tap.md

Lines changed: 40 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Homebrew tap instructions
22

3+
CBMC archives versions into a tap which you can use to quickly download and
4+
build various historical versions.
5+
6+
The tap is available at https://github.com/diffblue/homebrew-cbmc.
7+
8+
Any version installed from the tap is going to be built from source.
9+
310
## User instructions
411

512
1. Add the CBMC tap using the following command:
@@ -14,6 +21,18 @@
1421
$ brew install diffblue/cbmc/[email protected]
1522
```
1623

24+
3. To remove the version of CBMC installed you need to issue
25+
26+
```sh
27+
$ brew remove diffblue/cbmc/[email protected]
28+
```
29+
30+
4. To remove the tap altogether, you need to issue
31+
32+
```sh
33+
$ brew untap diffblue/cbmc
34+
```
35+
1736
## Developer instructions
1837

1938
1. First of all, you need to create a new tap locally:
@@ -48,6 +67,19 @@
4867
contain the formula that we had submitted for that version of CBMC in the
4968
`homebrew/core` repository.
5069

70+
4. If you want to edit a specific version formula, you can do that by issueing
71+
72+
```sh
73+
$ brew edit [email protected]
74+
```
75+
76+
with the appropriate version tag. This will open the formula on the default
77+
editor in your system to allow you to make changes.
78+
79+
These changes are only going to reflected locally - but you can `cd` to the
80+
repository, commit and then push to the tap (this is allowed only for people
81+
who have permission to push to the tap - mainly, the Diffblue open source team).
82+
5183

5284
## Notes
5385

@@ -59,13 +91,15 @@
5991

6092
* The binaries are installed without any version tag attached, so they cannot
6193
live side by side.
62-
* The install formula doesn't override binaries, so if you already have a CBMC
63-
version installed, you need to `remove` it before installing another one:
94+
* If you install a different version of CBMC and you want to use that one
95+
instead, you need to take an extra step after installation to setup the
96+
appropriate symlinks by using the `brew link` instruction:
6497

6598
```sh
66-
$ brew install diffblue/cbmc/[email protected]
67-
[...]
68-
$ brew remove [email protected]
69-
[...]
99+
$ cbmc --version # version installed by brew
100+
5.54.0
70101
$ brew install diffblue/cbmc/[email protected]
102+
$ brew link --overwrite [email protected]
103+
$ cbmc --version
104+
5.55.0
71105
```

0 commit comments

Comments
 (0)