From 85744a35de0e30c2dd6741b833f38ff218c8a3fc Mon Sep 17 00:00:00 2001 From: Michael Hudson-Doyle Date: Wed, 1 Oct 2014 14:56:45 +1300 Subject: [PATCH] use code generation for GITCOMMIT/VERSION too Signed-off-by: Michael Hudson-Doyle --- .gitignore | 1 + hack/make.sh | 17 +++++++++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index 6f6cfa1682..d7dae009d6 100644 --- a/.gitignore +++ b/.gitignore @@ -28,3 +28,4 @@ docs/GIT_BRANCH docs/VERSION docs/GITCOMMIT dockerversion/static.go +dockerversion/details.go diff --git a/hack/make.sh b/hack/make.sh index 5d0ddd879f..eda96b5e26 100755 --- a/hack/make.sh +++ b/hack/make.sh @@ -94,14 +94,19 @@ if [ -z "$DOCKER_CLIENTONLY" ]; then DOCKER_BUILDTAGS+=" daemon" fi -rm -f dockerversion/static.go +rm -f dockerversion/static.go dockerversion/details.go +cat > dockerversion/details.go <