Fix README.md to list the correct -ldflags for Go 1.5+

Also remove extraneous trailing space (whitespace-mode from emacs).

See also #1365
This commit is contained in:
Michael Faille 2016-02-04 12:25:41 -05:00 committed by Anthony Fok
parent ed23711e2e
commit 08670e6a47

View file

@ -131,7 +131,7 @@ mv hugo /usr/local/bin/
To add compile information to Hugo, replace the `go build` command with the following *(replace `/path/to/hugo` with the actual path)*: To add compile information to Hugo, replace the `go build` command with the following *(replace `/path/to/hugo` with the actual path)*:
go build -ldflags "-X /path/to/hugo/hugolib.CommitHash `git rev-parse --short HEAD 2>/dev/null` -X github.com/spf13/hugo/hugolib.BuildDate `date +%FT%T%z`" go build -ldflags "-X /path/to/hugo/hugolib.CommitHash=`git rev-parse --short HEAD 2>/dev/null` -X github.com/spf13/hugo/hugolib.BuildDate=`date +%FT%T%z`"
This will result in `hugo version` output that looks similar to: This will result in `hugo version` output that looks similar to: