#!/bin/bash

rm -rf autogen

mkdir -p autogen/dockerversion
cat > autogen/dockerversion/dockerversion.go <<EOF
// AUTOGENERATED FILE; see $BASH_SOURCE
package dockerversion

var (
	GITCOMMIT string = "$GITCOMMIT"
	VERSION   string = "$VERSION"

	IAMSTATIC string = "${IAMSTATIC:-true}"
	INITSHA1  string = "$DOCKER_INITSHA1"
	INITPATH  string = "$DOCKER_INITPATH"
)
EOF
