From d2ffccc75685e0291887ea4d85335f77418f8a24 Mon Sep 17 00:00:00 2001 From: John Schulz Date: Sat, 11 May 2013 14:15:49 -0700 Subject: [PATCH 1/2] Whitespace change. Remove whitespace from empty lines. --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5adf2ab3..7cb98aef5 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -71,17 +71,17 @@ end In order to find out the checksum for the file, you need to download the file and then: - + ``` bash $ curl -OL http://example-server.com/path/to/file/my-app.dmg # Download the file that contains the application $ shasum my-app.dmg # Calculate SHA-1 sum for the downloaded file ``` - + Some developers (like Mozilla) and hosts (like Sourceforge) provide checksums, so you can use those directly, without needing to download the file separately. - + In addition to `sha1` you can provide the checksum with `md5`, `sha256`, or `sha512` in the same manner. Use commands `md5 my-app.dmg` or `shasum -a 256 my-app.dmg` to obtain these checksums. @@ -96,7 +96,7 @@ This is all you need to do to write a Cask! When Casks are installed, they are searched in `/usr/local/Library/Taps`. You can replace the files in folder `phinze-cask` but you are recommended to make your own folder in which you place the tested Casks. - + ```bash $ mkdir -p /usr/local/Library/Taps/my-casks/Casks # Create directory in which the tested Casks are placed From 682bbef292587d65327a85af7827646eb8f11565 Mon Sep 17 00:00:00 2001 From: John Schulz Date: Sat, 11 May 2013 14:27:29 -0700 Subject: [PATCH 2/2] Don't assume `/usr/local`. Use `brew --prefix` --- CONTRIBUTING.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 7cb98aef5..a7dba764d 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -93,14 +93,14 @@ This is all you need to do to write a Cask! ## Testing your new Cask -When Casks are installed, they are searched in `/usr/local/Library/Taps`. You +When Casks are installed, they are searched in `` `brew --prefix`/Library/Taps ``. You can replace the files in folder `phinze-cask` but you are recommended to make your own folder in which you place the tested Casks. ```bash - $ mkdir -p /usr/local/Library/Taps/my-casks/Casks + $ mkdir -p `brew --prefix`/Library/Taps/my-casks/Casks # Create directory in which the tested Casks are placed - $ ln -s ~/homebrew-cask/Casks/my-app.rb /usr/local/Library/Taps/my-casks/Casks + $ ln -s ~/homebrew-cask/Casks/my-app.rb `brew --prefix`/Library/Taps/my-casks/Casks # Create a symbolic link to the Cask you created ``` @@ -110,7 +110,7 @@ install it: `brew cask install my-app`. Did it install? If yes, you can continue with submitting a pull request. If something went wrong, `brew cask uninstall my-app` and edit your Cask in `~/homebrew-cask/Casks/my-app.rb` or whereever you placed it. Since you -created a symbolic link in `/usr/local/Library/Taps/my-casks/Casks`, changes +created a symbolic link in `` `brew --prefix`/Library/Taps/my-casks/Casks ``, changes are automatically reflected in there, so you can directly try installing after those changes.