summaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorDerek Perkins <[email protected]>2014-12-09 08:36:07 -0700
committerbep <[email protected]>2015-01-19 01:22:23 +0100
commitac6b86aff8fe2ef8417c48074aadad6beea53052 (patch)
treee750cca04e36c3fc9c8ad5d62919aeb75b18417c /Makefile
parent90afe41e4943393a98a3f64409d7e8445c6a622d (diff)
downloadhugo-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--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 00460f172..29f10abe5 100644
--- a/Makefile
+++ b/Makefile
@@ -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