diff options
author | Baptiste Fontaine <b@ptistefontaine.fr> | 2015-06-16 01:09:13 +0200 |
---|---|---|
committer | Baptiste Fontaine <batifon@yahoo.fr> | 2015-06-16 01:14:24 +0200 |
commit | 2464dc47c339e371fdc27084b6ccc3e0d393f16f (patch) | |
tree | 692d56f68382d48a38c97e5f1b86c73ccbdfba4e | |
parent | 2386a30fef26180e0e8fcf12b377886d3be23e62 (diff) |
Simplified mac homebrew version bump instructions
Also changed to the preferred checksum (SHA256) and mentioned the preferred commit message format.
-rw-r--r-- | dist/update-mac-homebrew-instructions | 25 |
1 files changed, 8 insertions, 17 deletions
diff --git a/dist/update-mac-homebrew-instructions b/dist/update-mac-homebrew-instructions index 61f7194..0f3cf4d 100644 --- a/dist/update-mac-homebrew-instructions +++ b/dist/update-mac-homebrew-instructions @@ -15,35 +15,26 @@ Instructions to bump the version of q in homebrew 3. Edit the file Library/Formula/q.rb. - a. Change the url to the new tar.gz file: + a. Change the url to the new tar.gz file - b. Change the sha1 checksum + b. Change the sha256 checksum - $ wget "https://github.com/harelba/q/archive/<version>.tar.gz" + $ curl -sL "https://github.com/harelba/q/archive/<version>.tar.gz" | shasum -a 256 + <checksum> - - $ sha1sum <version>.tar.gz - <checksum> <filename> - - $ Change the checksum in q.rb's "sha1" line to the new checksum + $ Change the checksum in q.rb's "sha256" line to the new checksum c. Verify by running the following: - delete the <version>.tar.gz file from the folder - - $ s=`curl -L \`grep url q.rb | awk '{print $2}' | tr -d '"'\` | sha1sum | awk '{print $1}'` - - $ echo $s - <checksum> - - $ grep $s *.rb + $ brew fetch -s q - The output should contain (and only contain) the sha1 line in q.rb + The output should show the new SHA256 without any warning 4. Check the diff git diff | vi - -5. Commit the change +5. Commit the change as "q <version>" 6. Push it as a separate branch to your repository: |