From a1188d9778f5738a2cf6d591395f5f29b58a933d Mon Sep 17 00:00:00 2001 From: "Frederick F. Kautz IV" Date: Sun, 5 Apr 2015 16:08:44 -0700 Subject: [PATCH] Updating build constants --- .gitattributes | 2 +- .gitignore | 3 +-- Makefile | 3 --- build-constants.go | 9 +++++++++ 4 files changed, 11 insertions(+), 6 deletions(-) create mode 100644 build-constants.go diff --git a/.gitattributes b/.gitattributes index 9423adc9..03f2b430 100644 --- a/.gitattributes +++ b/.gitattributes @@ -1 +1 @@ -main.go ident \ No newline at end of file +build-constants.go ident \ No newline at end of file diff --git a/.gitignore b/.gitignore index a38cf3b8..fe9e56e1 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,3 @@ -/build-constants.go cover.out mc -site/ \ No newline at end of file +site/ diff --git a/Makefile b/Makefile index 41f6c5ad..2601e878 100644 --- a/Makefile +++ b/Makefile @@ -35,8 +35,6 @@ cyclo: pre-build: @echo "Running pre-build:" - @(env bash $(PWD)/buildscripts/git-commit-id.sh) - build-all: getdeps verifiers @echo "Building Libraries:" @@ -67,4 +65,3 @@ install: test-all clean: @rm -fv cover.out - @rm -fv build-constants.go diff --git a/build-constants.go b/build-constants.go new file mode 100644 index 00000000..b23a632a --- /dev/null +++ b/build-constants.go @@ -0,0 +1,9 @@ +/* + * ** DO NOT EDIT THIS FILE. THIS FILE IS AUTO POPULATED BY GIT ** + */ + +package main + +const ( + mcGitCommitHash = "$Id$" +)