.go-autogen 787 B

123456789101112131415161718192021
  1. #!/usr/bin/env bash
  2. LDFLAGS="${LDFLAGS} \
  3. -X \"github.com/docker/docker/dockerversion.Version=${VERSION}\" \
  4. -X \"github.com/docker/docker/dockerversion.GitCommit=${GITCOMMIT}\" \
  5. -X \"github.com/docker/docker/dockerversion.BuildTime=${BUILDTIME}\" \
  6. -X \"github.com/docker/docker/dockerversion.PlatformName=${PLATFORM}\" \
  7. -X \"github.com/docker/docker/dockerversion.ProductName=${PRODUCT}\" \
  8. -X \"github.com/docker/docker/dockerversion.DefaultProductLicense=${DEFAULT_PRODUCT_LICENSE}\" "
  9. # Compile the Windows resources into the sources
  10. if [ "$(go env GOOS)" = "windows" ]; then
  11. if [ ! -x "$(command -v go-winres)" ]; then
  12. >&2 echo "go-winres not found, skipping manifesting binary"
  13. else
  14. (
  15. . hack/make/.mkwinres
  16. go generate -v "${GO_PACKAGE}"
  17. )
  18. fi
  19. fi