github.com/Heebron/moby@v0.0.0-20221111184709-6eab4f55faf7/hack/make/.go-autogen (about)

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