diff options
author | Derek Perkins <[email protected]> | 2014-12-09 08:36:07 -0700 |
---|---|---|
committer | bep <[email protected]> | 2015-01-19 01:22:23 +0100 |
commit | ac6b86aff8fe2ef8417c48074aadad6beea53052 (patch) | |
tree | e750cca04e36c3fc9c8ad5d62919aeb75b18417c /Makefile | |
parent | 90afe41e4943393a98a3f64409d7e8445c6a622d (diff) | |
download | hugo-ac6b86aff8fe2ef8417c48074aadad6beea53052.tar.gz hugo-ac6b86aff8fe2ef8417c48074aadad6beea53052.zip |
Added top level .Hugo variable with version, commit and generator information + docs
Added Version, CommitHash and BuildDate to hugolib/hugo.go and used it in build
Removed commitHash and buildDate from commands/version.go and used hugolib vars
Removed getDateFormat function from commands/version.go
Conflicts:
README.md
docs/content/templates/variables.md
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -6,7 +6,7 @@ COMMIT_HASH=`git rev-parse --short HEAD 2>/dev/null` BUILD_DATE=`date +%FT%T%z` -LDFLAGS=-ldflags "-X github.com/spf13/hugo/commands.commitHash ${COMMIT_HASH} -X github.com/spf13/hugo/commands.buildDate ${BUILD_DATE}" +LDFLAGS=-ldflags "-X github.com/spf13/hugo/hugolib.CommitHash ${COMMIT_HASH} -X github.com/spf13/hugo/hugolib.BuildDate ${BUILD_DATE}" all: gitinfo |