8e5b17cf13
Signed-off-by: Mrunal Patel <mrunalp@gmail.com>
20 lines
520 B
Bash
20 lines
520 B
Bash
#!/bin/bash
|
|
|
|
cat > storageversion/version_autogen.go <<EOF
|
|
// +build containersstorageautogen
|
|
|
|
// Package version is auto-generated at build-time
|
|
package storageversion
|
|
|
|
// Default build-time variable for library-import.
|
|
// This file is overridden on build with build-time informations.
|
|
const (
|
|
GitCommit string = "$GITCOMMIT"
|
|
Version string = "$VERSION"
|
|
BuildTime string = "$BUILDTIME"
|
|
IAmStatic string = "${IAMSTATIC:-false}"
|
|
)
|
|
// AUTOGENERATED FILE; see $BASH_SOURCE
|
|
EOF
|
|
|
|
BUILDTAGS+=" containersstorageautogen"
|