summaryrefslogtreecommitdiffstats
path: root/dist/update-mac-homebrew-instructions
blob: 0f3cf4df331bb344ebebccadbc630e2a70280ecf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
Instructions to bump the version of q in homebrew

1. Sync your fork with homebrew original fork

	git checkout master

	git pull upstream master

	git push origin master

2. Create a branch for the version bump

	git checkout -b q<version-number>

3. Edit the file Library/Formula/q.rb.

	a. Change the url to the new tar.gz file

	b. Change the sha256 checksum

		$ curl -sL "https://github.com/harelba/q/archive/<version>.tar.gz" | shasum -a 256
		<checksum> -

		$ Change the checksum in q.rb's "sha256" line to the new checksum

	c. Verify by running the following:

		$ brew fetch -s q

		The output should show the new SHA256 without any warning

4. Check the diff

	git diff | vi -

5. Commit the change as "q <version>"

6. Push it as a separate branch to your repository:

	git push origin q<version-number>

7. Go the homebrew fork in github, and press "compare and pull-request" on the just-pushed branch

8. Review the diff and make sure that the pull-request is from <fork>/<branch> to homebrew/master (should be the default)

9. Press "create pull-request" button

10. If everything is fine, you'll be confirmed after several hours