|
1 | 1 | # Homebrew tap instructions
|
2 | 2 |
|
| 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 | + |
3 | 10 | ## User instructions
|
4 | 11 |
|
5 | 12 | 1. Add the CBMC tap using the following command:
|
|
14 | 21 | $ brew install diffblue/cbmc/ [email protected]
|
15 | 22 | ```
|
16 | 23 |
|
| 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 | + |
17 | 36 | ## Developer instructions
|
18 | 37 |
|
19 | 38 | 1. First of all, you need to create a new tap locally:
|
|
48 | 67 | contain the formula that we had submitted for that version of CBMC in the
|
49 | 68 | `homebrew/core` repository.
|
50 | 69 |
|
| 70 | +4. If you want to edit a specific version formula, you can do that by issueing |
| 71 | + |
| 72 | + ```sh |
| 73 | + |
| 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 | + |
51 | 83 |
|
52 | 84 | ## Notes
|
53 | 85 |
|
|
59 | 91 |
|
60 | 92 | * The binaries are installed without any version tag attached, so they cannot
|
61 | 93 | 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: |
64 | 97 |
|
65 | 98 | ```sh
|
66 |
| - $ brew install diffblue/cbmc/ [email protected] |
67 |
| - [...] |
68 |
| - |
69 |
| - [...] |
| 99 | + $ cbmc --version # version installed by brew |
| 100 | + 5.54.0 |
70 | 101 | $ brew install diffblue/cbmc/ [email protected]
|
| 102 | + $ brew link --overwrite [email protected] |
| 103 | + $ cbmc --version |
| 104 | + 5.55.0 |
71 | 105 | ```
|
0 commit comments