summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorGeorg Hartmann <mail@georg-hartmann.com>2016-08-10 12:45:13 +0200
committerdigitalcraftsman <digitalcraftsman@protonmail.com>2016-08-18 20:49:13 +0200
commit68c8e0e23d8f30b6dd4d5565c44674b94fb25a55 (patch)
treeb55d5cb6393318bb75d51f83bbc2e32c103efb3f /docs
parentbe429d22681f9486b9ee47b53b93c3beb97e3b17 (diff)
docs: Correct name of release archives for OS X
Fixes #2341
Diffstat (limited to 'docs')
-rw-r--r--docs/content/tutorials/installing-on-mac.md51
1 files changed, 13 insertions, 38 deletions
diff --git a/docs/content/tutorials/installing-on-mac.md b/docs/content/tutorials/installing-on-mac.md
index 3a52373db..da8f252db 100644
--- a/docs/content/tutorials/installing-on-mac.md
+++ b/docs/content/tutorials/installing-on-mac.md
@@ -1,6 +1,6 @@
---
author: "Michael Henderson"
-lastmod: 2016-01-04
+lastmod: 2016-08-10
date: 2015-02-22
linktitle: Installing on Mac
toc: true
@@ -124,7 +124,7 @@ All three locations will work for you. I'm going to document the second option,
2. Find the current release by scrolling down and looking for the green tag that reads "Latest Release."
-3. Download the current tarball for the Mac. The name will be something like `hugo_X.YY_darwin_amd64.zip`, where `X.YY` is the release number.
+3. Download the current tarball for the Mac. The name will be something like `hugo_X.Y_osx-64bit.tgz`, where `X.YY` is the release number.
4. By default, the tarball will be saved to your `~/Downloads` directory. If you chose to use a different location, you'll need to change that in the following steps.
@@ -133,10 +133,10 @@ All three locations will work for you. I'm going to document the second option,
Verify that the tarball wasn't corrupted during the download:
```
-$ tar tvf ~/Downloads/hugo_0.13_darwin_amd64.zip
--rwxrwxrwx 0 0 0 0 Feb 22 04:02 hugo_0.13_darwin_amd64/hugo_0.13_darwin_amd64
--rwxrwxrwx 0 0 0 0 Feb 22 03:24 hugo_0.13_darwin_amd64/README.md
--rwxrwxrwx 0 0 0 0 Jan 30 18:48 hugo_0.13_darwin_amd64/LICENSE.md
+$ tar tvf ~/Downloads/hugo_X.Y_osx-64bit.tgz
+-rwxrwxrwx 0 0 0 0 Feb 22 04:02 hugo_X.Y_osx-64bit/hugo_X.Y_osx-64bit.tgz
+-rwxrwxrwx 0 0 0 0 Feb 22 03:24 hugo_X.Y_osx-64bit/README.md
+-rwxrwxrwx 0 0 0 0 Jan 30 18:48 hugo_X.Y_osx-64bit/LICENSE.md
```
The `.md` files are documentation. The other file is the executable.
@@ -151,37 +151,12 @@ $ # make it the working directory
$ cd ~/bin
$ # extract the tarball
-$ unzip ~/Downloads/hugo_0.13_darwin_amd64.zip
-Archive: hugo_0.13_darwin_amd64.zip
- inflating: hugo_0.13_darwin_amd64/hugo_0.13_darwin_amd64
- inflating: hugo_0.13_darwin_amd64/README.md
- inflating: hugo_0.13_darwin_amd64/LICENSE.md
-
-$ ls -l
-total 7704
-lrwxr-xr-x 1 mdhender staff 22 Sep 29 13:34 hugo -> hugo_0.12_darwin_amd/hugo_0.12_darwin_amd64
-drwxr-xr-x@ 1 mdhender staff 102 Sep 1 14:17 hugo_0.12_darwin_amd64
-drwxrwxr-x@ 5 mdhender staff 170 Mar 28 22:46 hugo_0.13_darwin_amd64
--rw-r-----@ 1 mdhender staff 3942651 Mar 28 22:45 hugo_0.13_darwin_amd64.zip
-
-$ ls -l hugo_0.13_darwin_amd64
-total 27560
--rw-r--r--@ 1 mdhender staff 2707 Jan 30 18:48 LICENSE.md
--rw-r--r--@ 1 mdhender staff 6748 Feb 22 03:24 README.md
--rwxr-xr-x@ 1 mdhender staff 14095060 Feb 22 04:02 hugo_0.13_darwin_amd64
-```
-
-I was already running Hugo v0.12, so you can see how that was set up. It'll be identical for v0.13 when we're done.
-
-```
-$ # create the link to the real executable
-$ rm -f hugo
-$ ln -s hugo_0.13_darwin_amd64/hugo_0.13_darwin_amd64 hugo
-$ ls -l
-total 7704
-lrwxr-xr-x 1 mdhender staff 22 Mar 28 22:49 hugo -> hugo_0.13_darwin_amd/hugo_0.12_darwin_amd64
-drwxr-xr-x@ 1 mdhender staff 102 Sep 1 14:17 hugo_0.12_darwin_amd64
-drwxrwxr-x@ 5 mdhender staff 170 Mar 28 22:46 hugo_0.13_darwin_amd64
+$ tar -xvzf ~/Downloads/hugo_X.Y_osx-64bit.tgz
+Archive: hugo_X.Y_osx-64bit.tgz
+ x ./
+ x ./hugo
+ x ./LICENSE.md
+ x ./README.md
$ # verify that it runs
$ ./hugo version
@@ -193,7 +168,7 @@ You may need to add your bin directory to your `PATH` variable. The `which` comm
```
$ # check if hugo is in the path
$ which hugo
-/Users/mdhender/bin/hugo
+/Users/USERNAME/bin/hugo
```
If `hugo` is not in your `PATH`, add it by updating your `~/.bash_profile` file. First, start up an editor: