21 lines
520 B
Text
21 lines
520 B
Text
|
#!/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"
|