From 1648a3a551d2174933e7a723062899b83712a7d1 Mon Sep 17 00:00:00 2001 From: Harel Ben-Attia Date: Sat, 13 Dec 2014 10:43:27 -0500 Subject: Formalized mac homebrew version bump --- dist/update-mac-homebrew-instructions | 60 +++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 dist/update-mac-homebrew-instructions (limited to 'dist') diff --git a/dist/update-mac-homebrew-instructions b/dist/update-mac-homebrew-instructions new file mode 100644 index 0000000..61f7194 --- /dev/null +++ b/dist/update-mac-homebrew-instructions @@ -0,0 +1,60 @@ + +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 + +3. Edit the file Library/Formula/q.rb. + + a. Change the url to the new tar.gz file: + + b. Change the sha1 checksum + + $ wget "https://github.com/harelba/q/archive/.tar.gz" + + $ sha1sum .tar.gz + + + $ Change the checksum in q.rb's "sha1" line to the new checksum + + c. Verify by running the following: + + delete the .tar.gz file from the folder + + $ s=`curl -L \`grep url q.rb | awk '{print $2}' | tr -d '"'\` | sha1sum | awk '{print $1}'` + + $ echo $s + + + $ grep $s *.rb + + The output should contain (and only contain) the sha1 line in q.rb + +4. Check the diff + + git diff | vi - + +5. Commit the change + +6. Push it as a separate branch to your repository: + + git push origin q + +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 / 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 + + -- cgit v1.2.3